led-driver: channel default 11, bare ESP-NOW build, settings and USB config updates
Default ESP-NOW channel is now 11. Adds the bare ESP-NOW-only build option (CONFIG_LED_ESPNOW_ONLY) with its sdkconfig fragments, a default hostname from the Wi-Fi MAC, and the related net, link, web and settings changes. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
12a8e225ad
commit
c9838d1cbe
18 files changed
+268
-31
No files matched your search
@@ -38,20 +38,40 @@ define idf
|
||||
endef
|
||||
endif
|
||||
|
||||
.PHONY: all build flash monitor flash-monitor menuconfig clean fullclean help
|
||||
# A running led-controller (desktop or `make rig`) probes every serial port while it looks for a bridge
|
||||
# board, and a probe in the middle of a flash breaks the write (the erase still gets through). The flash
|
||||
# and erase targets stop while one runs; FORCE=1 flashes anyway. Not checked on Windows.
|
||||
APP_PROCS := led-controller|led_controller_
|
||||
|
||||
.PHONY: all no-app build flash erase monitor flash-monitor menuconfig clean fullclean help
|
||||
|
||||
all: build
|
||||
|
||||
ifeq ($(HOST_OS),windows)
|
||||
no-app:
|
||||
else
|
||||
no-app:
|
||||
@pids=$$(pgrep -x '$(APP_PROCS)' | xargs); \
|
||||
if [ -n "$$pids" ] && [ -z "$(FORCE)" ]; then \
|
||||
echo "led-controller is running (pid $$pids). It probes serial ports and breaks flashing: quit it first, or add FORCE=1."; \
|
||||
exit 1; \
|
||||
fi
|
||||
endif
|
||||
|
||||
build:
|
||||
$(call idf,build)
|
||||
|
||||
flash: build
|
||||
flash: no-app build
|
||||
$(call idf,-p $(PORT) flash)
|
||||
|
||||
# Erase the whole flash on PORT (firmware and stored settings); make flash afterwards
|
||||
erase: no-app
|
||||
$(call idf,-p $(PORT) erase-flash)
|
||||
|
||||
monitor:
|
||||
$(call idf,-p $(PORT) monitor)
|
||||
|
||||
flash-monitor: build
|
||||
flash-monitor: no-app build
|
||||
$(call idf,-p $(PORT) flash monitor)
|
||||
|
||||
menuconfig:
|
||||
@@ -67,6 +87,7 @@ help:
|
||||
@echo Targets:
|
||||
@echo build Build the firmware
|
||||
@echo flash Build, then flash to the board on PORT
|
||||
@echo erase Erase the whole flash on PORT, stored settings included
|
||||
@echo monitor Open the serial monitor on PORT
|
||||
@echo flash-monitor Build, flash, then open the serial monitor
|
||||
@echo menuconfig Open the project configuration menu
|
||||
|
||||
Reference in new issue
Block a user