diff --git a/.gitignore b/.gitignore index c3a3849..203df68 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ __pycache__ lib/ requirements.txt +micropython.bin diff --git a/ESP8266_GENERIC-20240222-v1.22.2.bin b/ESP8266_GENERIC-20240222-v1.22.2.bin deleted file mode 100644 index b0ec170..0000000 Binary files a/ESP8266_GENERIC-20240222-v1.22.2.bin and /dev/null differ diff --git a/Makefile b/Makefile index 719d21b..818350b 100644 --- a/Makefile +++ b/Makefile @@ -51,8 +51,11 @@ check: src/*.mpy erase_flash: $(ESP_TOOL) erase_flash -flash_esp: erase_flash - $(ESP_TOOL) --baud 460800 write_flash --flash_size=detect 0 $(MICRO_PYTHON_FIRMWARE) +micropython.bin: + curl --output micropython.bin https://micropython.org/resources/firmware/$(MICRO_PYTHON_FIRMWARE) + +flash_esp: erase_flash micropython.bin + $(ESP_TOOL) --baud 460800 write_flash --flash_size=detect 0 micropython.bin install: check install_lib $(JUPYTER_PYTHON_FILES) $(AMPY) put src/main.py