144 connected = self.microPython.isConnected() |
144 connected = self.microPython.isConnected() |
145 |
145 |
146 act = menu.addAction(self.tr("Flash CircuitPython Firmware"), |
146 act = menu.addAction(self.tr("Flash CircuitPython Firmware"), |
147 self.__flashCircuitPython) |
147 self.__flashCircuitPython) |
148 act.setEnabled(not connected) |
148 act.setEnabled(not connected) |
|
149 # TODO: add menu entry to copy a .mpy or .py file to the |
|
150 # device library (creating the /lib folder if it doesn't |
|
151 # exist already) |
|
152 # TODO: add menu entry to cross-compile a .py file (using mpy-cross) |
149 |
153 |
150 @pyqtSlot() |
154 @pyqtSlot() |
151 def __flashCircuitPython(self): |
155 def __flashCircuitPython(self): |
152 """ |
156 """ |
153 Private slot to flash a CircuitPython firmware to the device. |
157 Private slot to flash a CircuitPython firmware to the device. |