More AI slop

This commit is contained in:
2025-07-29 21:56:27 +03:00
parent 5fdc005613
commit 56f5ee0af9
14 changed files with 1323 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
SKETCH_FOLDER := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
UPLOAD_PORT ?= /dev/ttyUSB0
all: $(SKETCH_FOLDER)/build/esp8266-arduino.ino.bin
$(SKETCH_FOLDER)/cities.h: ../cities.py
python3 ../cities.py > $(SKETCH_FOLDER)/cities.h
$(SKETCH_FOLDER)/build/esp8266-arduino.ino.bin: $(SKETCH_FOLDER)/esp8266-arduino.ino $(SKETCH_FOLDER)/cities.h
arduino-cli compile -e -b esp8266:esp8266:generic $(SKETCH_FOLDER)
deps:
arduino-cli config set network.connection_timeout 600s
arduino-cli core install \
--additional-urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json esp8266:esp8266
arduino-cli lib install wifimanager ESP8266TimerInterrupt ezTime
flash: $(SKETCH_FOLDER)/esp8266-arduino.ino.bin
arduino-cli upload -b esp8266:esp8266:generic -p $(UPLOAD_PORT) $(SKETCH_FOLDER)
console:
picocom -b 9600 $(UPLOAD_PORT)