fix makefile
This commit is contained in:
parent
baac6b6e5d
commit
5960f7a1bb
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -5,8 +5,8 @@ PORT = /dev/ttyUSB5
|
||||||
|
|
||||||
micropython:
|
micropython:
|
||||||
curl https://micropython.org/resources/firmware/$(MICRO_PYTON_BINARY) --output $(MICRO_PYTON_BINARY)
|
curl https://micropython.org/resources/firmware/$(MICRO_PYTON_BINARY) --output $(MICRO_PYTON_BINARY)
|
||||||
esptool.py --chip esp32 -p $(PORT) esrase_flash
|
esptool.py --chip esp32 -p $(PORT) erase_flash
|
||||||
esptool.py --chip esp32 -p $(PORT) write_flash -z 0x1000 <$
|
esptool.py --chip esp32 -p $(PORT) write_flash -z 0x1000 $(MICRO_PYTON_BINARY)
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
find . -maxdepth 1 -name '*.py' -exec ampy -p $(PORT) put {} \;
|
find . -maxdepth 1 -name '*.py' -exec ampy -p $(PORT) put {} \;
|
||||||
|
@ -14,8 +14,10 @@ upload:
|
||||||
term:
|
term:
|
||||||
picocom -b 115200 $(PORT)
|
picocom -b 115200 $(PORT)
|
||||||
|
|
||||||
devenv:
|
venv:
|
||||||
python3 -m virtualenv venv
|
python3 -m virtualenv venv
|
||||||
|
|
||||||
|
requirements:
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
filelist:
|
filelist:
|
||||||
|
|
Loading…
Reference in a new issue