Python: Unterschied zwischen den Versionen
Stefan (Diskussion | Beiträge) |
Stefan (Diskussion | Beiträge) |
||
Zeile 3: | Zeile 3: | ||
== MicroPython == | == MicroPython == | ||
=== MicroPython.org=== | === MicroPython.org=== | ||
− | + | http://www.micropython.org | |
+ | http://www.micropython.org/download | ||
+ | |||
==== MicroPython Doku ==== | ==== MicroPython Doku ==== | ||
http://docs.micropython.org/en/latest/index.html | http://docs.micropython.org/en/latest/index.html | ||
Zeile 9: | Zeile 11: | ||
=== esptool === | === esptool === | ||
pip install esptool | pip install esptool | ||
+ | |||
+ | https://github.com/espressif/esptool | ||
esptool --help | esptool --help | ||
+ | |||
+ | python -m esptool --chip auto --port COM7 erase_flash | ||
+ | python -m esptool --chip auto --port COM7 write_flash -z 0x1000 esp8266-20191220-v1.12.bin | ||
+ | esptool --port COM7 write_flash --flash_size=detect -fm dio 0 esp8266-20191220-v1.12.bin | ||
+ | |||
+ | import esp | ||
+ | esp.check_fw() | ||
=== ampy === | === ampy === | ||
Zeile 16: | Zeile 27: | ||
pip install adafruit-ampy | pip install adafruit-ampy | ||
+ | python -m pip install adafruit-ampy --upgrade | ||
+ | |||
+ | ampy -p com7 -d 2 ls | ||
+ | ampy -p COM7 -d 2 get boot.py >> boot.py | ||
+ | ampy -p COM7 -d 2 put main.py | ||
+ | |||
python -m ampy | python -m ampy |
Version vom 10. Januar 2020, 18:20 Uhr
Inhaltsverzeichnis
Python
MicroPython
MicroPython.org
http://www.micropython.org http://www.micropython.org/download
MicroPython Doku
http://docs.micropython.org/en/latest/index.html
esptool
pip install esptool
https://github.com/espressif/esptool
esptool --help
python -m esptool --chip auto --port COM7 erase_flash python -m esptool --chip auto --port COM7 write_flash -z 0x1000 esp8266-20191220-v1.12.bin esptool --port COM7 write_flash --flash_size=detect -fm dio 0 esp8266-20191220-v1.12.bin
import esp esp.check_fw()
ampy
https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy
pip install adafruit-ampy python -m pip install adafruit-ampy --upgrade
ampy -p com7 -d 2 ls ampy -p COM7 -d 2 get boot.py >> boot.py ampy -p COM7 -d 2 put main.py
python -m ampy
ampy --help
rshell
pip install rshell
rshell --help
mpfshell
pip install mpfshell
mpfshell --help
upyCraft
https://github.com/DFRobot/uPyCraft
http://docs.dfrobot.com/upycraft/