src/eric7/MicroPython/Devices/CircuitPythonDevices.py

branch
eric7
changeset 11005
b918c6c2736b
parent 10806
2f6df822e3b9
child 11006
a671918232f3
equal deleted inserted replaced
11004:5f8d929657b3 11005:b918c6c2736b
490 """ 490 """
491 Private slot to flash a CircuitPython firmware to a device supporting UF2. 491 Private slot to flash a CircuitPython firmware to a device supporting UF2.
492 """ 492 """
493 from ..UF2FlashDialog import UF2FlashDialog 493 from ..UF2FlashDialog import UF2FlashDialog
494 494
495 dlg = UF2FlashDialog(boardType="circuitpython") 495 dlg = UF2FlashDialog(boardType="circuitpython", parent=self.microPython)
496 dlg.exec() 496 dlg.exec()
497 497
498 @pyqtSlot() 498 @pyqtSlot()
499 def __activateBootloader(self): 499 def __activateBootloader(self):
500 """ 500 """
557 Private slot to flash a MicroPython or CircuitPython firmware to an ESP32 557 Private slot to flash a MicroPython or CircuitPython firmware to an ESP32
558 device. 558 device.
559 """ 559 """
560 from .EspDevices import flashPythonFirmware 560 from .EspDevices import flashPythonFirmware
561 561
562 flashPythonFirmware(self.microPython.getCurrentPort()) 562 flashPythonFirmware(self.microPython.getCurrentPort(), parent=self.microPython)
563 563
564 @pyqtSlot() 564 @pyqtSlot()
565 def __esp32FlashAddons(self): 565 def __esp32FlashAddons(self):
566 """ 566 """
567 Private slot to flash additional firmware to an ESP32 device. 567 Private slot to flash additional firmware to an ESP32 device.
568 """ 568 """
569 from .EspDevices import flashAddonFirmware 569 from .EspDevices import flashAddonFirmware
570 570
571 flashAddonFirmware(self.microPython.getCurrentPort()) 571 flashAddonFirmware(self.microPython.getCurrentPort(), parent=self.microPython)
572 572
573 @pyqtSlot() 573 @pyqtSlot()
574 def showCircuitPythonVersions(self): 574 def showCircuitPythonVersions(self):
575 """ 575 """
576 Public slot to show the CircuitPython version of a connected device and 576 Public slot to show the CircuitPython version of a connected device and

eric ide

mercurial