eric6/MicroPython/CircuitPythonDevices.py

branch
micropython
changeset 7122
8e67ef7975de
parent 7116
233b6e62ca2b
child 7125
2028553ee58c
equal deleted inserted replaced
7120:89ee83fadec9 7122:8e67ef7975de
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.

eric ide

mercurial