eric6/MicroPython/EspDevices.py

changeset 7337
0e4a912548cc
parent 7328
e2d85ef3fadb
child 7346
9108d26211f7
equal deleted inserted replaced
7336:0095e231ddaf 7337:0e4a912548cc
21 from .MicroPythonDevices import MicroPythonDevice 21 from .MicroPythonDevices import MicroPythonDevice
22 from .MicroPythonWidget import HAS_QTCHART 22 from .MicroPythonWidget import HAS_QTCHART
23 23
24 import Preferences 24 import Preferences
25 25
26
27 # TODO: add backupFlash: python ./esptool.py --port /dev/ttyUSB4 --baud 115200 read_flash 0x00000 0x400000 backup.img
28 # selection of sizes: 1MB, 2MB, 4MB, 8MB, 16M (0x100000, 0x200000, 0x400000, 0x800000, 0x1000000)
29 # ESP8266: 256KB, 512KB (0x40000, 0x80000)
30 # TODO: add restoreFlash: python esptool.py --port /dev/ttyUSB4 write_flash --flash_mode qio 0x00000 backup.img
31 # alternative modes for --flash_mode: qio,qout,dio,dout
32 # optional: --flash_size 1MB, 2MB, 4MB, 8MB, 16M (ESP8266 zusätzlich 256KB, 512KB)
33 # TODO: add showChipID: python esptool.py --port /dev/ttyUSB4 --baud 115200 chip_id
34 # TODO: add showFlashID: python esptool.py --port /dev/ttyUSB4 --baud 115200 flash_id
35 # TODO: add readMAC: python esptool.py --port /dev/ttyUSB4 --baud 115200 read_mac
26 36
27 class EspDevice(MicroPythonDevice): 37 class EspDevice(MicroPythonDevice):
28 """ 38 """
29 Class implementing the device for ESP32 and ESP8266 based boards. 39 Class implementing the device for ESP32 and ESP8266 based boards.
30 """ 40 """

eric ide

mercurial