upython-bme680/Makefile

25 lines
587 B
Makefile
Raw Normal View History

2021-02-04 21:25:36 +01:00
MICRO_PYTON_BINARY = esp32-idf4-20200902-v1.13.bin
PORT = /dev/ttyUSB5
.PHONY: term filelist devenv upload micropython
micropython:
curl https://micropython.org/resources/firmware/$(MICRO_PYTON_BINARY) --output $(MICRO_PYTON_BINARY)
2021-03-02 20:56:28 +01:00
esptool.py --chip esp32 -p $(PORT) erase_flash
esptool.py --chip esp32 -p $(PORT) write_flash -z 0x1000 $(MICRO_PYTON_BINARY)
2021-02-04 21:25:36 +01:00
upload:
find . -maxdepth 1 -name '*.py' -exec ampy -p $(PORT) put {} \;
term:
picocom -b 115200 $(PORT)
2021-03-02 20:56:28 +01:00
venv:
2021-02-04 21:25:36 +01:00
python3 -m virtualenv venv
2021-03-02 20:56:28 +01:00
requirements:
2021-02-04 21:25:36 +01:00
pip install -r requirements.txt
filelist:
ampy -p $(PORT) ls