PlatformIO/Arduino firmware for WEMOS/LOLIN S2 Mini: - 6-bit GPIO control (GPIOs 1-6) with glitch-free register writes - REST API: /status, /set, /config, /sweep endpoints - Web UI with PCB green theme, slider, presets, pin visualization - NVS persistence of attenuation setting across power cycles - Sweep mode for automated attenuation stepping - mDNS (attenuator.local), OTA updates, watchdog
22 lines
261 B
Makefile
22 lines
261 B
Makefile
.PHONY: build upload uploadfs monitor clean ota
|
|
|
|
build:
|
|
pio run
|
|
|
|
upload:
|
|
pio run -t upload
|
|
|
|
uploadfs:
|
|
pio run -t uploadfs
|
|
|
|
monitor:
|
|
pio device monitor
|
|
|
|
flash: upload uploadfs
|
|
|
|
clean:
|
|
pio run -t clean
|
|
|
|
ota:
|
|
pio run -t upload --upload-port attenuator.local
|