229 @pyqtSlot() |
229 @pyqtSlot() |
230 def __flashCircuitPython(self): |
230 def __flashCircuitPython(self): |
231 """ |
231 """ |
232 Private slot to flash a CircuitPython firmware to the device. |
232 Private slot to flash a CircuitPython firmware to the device. |
233 """ |
233 """ |
|
234 from .UF2FlashDialog import UF2FlashDialog |
|
235 |
234 lBoardName = self.microPython.getCurrentBoard().lower() |
236 lBoardName = self.microPython.getCurrentBoard().lower() |
235 if lBoardName: |
237 if lBoardName: |
236 for name in self.__nonUF2devices: |
238 for name in self.__nonUF2devices: |
237 if name in lBoardName: |
239 if name in lBoardName: |
238 self.__nonUF2devices[name]() |
240 self.__nonUF2devices[name]() |
239 break |
241 break |
240 else: |
242 else: |
241 from .UF2FlashDialog import UF2FlashDialog |
|
242 |
|
243 dlg = UF2FlashDialog(boardType="circuitpython") |
243 dlg = UF2FlashDialog(boardType="circuitpython") |
244 dlg.exec() |
244 dlg.exec() |
245 |
245 |
246 def __flashTeensy(self): |
246 def __flashTeensy(self): |
247 """ |
247 """ |