Skip to content

feat(thinknode_m6): Drive the LEDs and the button as in the Elecrow manual - #3928

Open
obook wants to merge 5 commits into
meshcore-dev:devfrom
obook:m6-leds-elecrow-manual
Open

obook wants to merge 5 commits into
meshcore-dev:devfrom
obook:m6-leds-elecrow-manual

Conversation

@obook

@obook obook commented Nov 23, 2026 •

Copy link
Copy Markdown

The LEDs and the button now follow the Elecrow manual:

  • red: on for 10 s at boot, steady on USB or while charging, slow flash at 3.5 V or less
  • blue: fast flashes (5 Hz) while sending and after each received packet
  • hold the button 4 s and release: 5 red flashes, then power off
  • after a power off, hold the button 3 s to power on (the red LED lights then); a shorter press goes back to sleep

The charger starting also wakes the board, so a solar node wakes when charging resumes. As in Meshtastic, presses in the first 30 s after boot are ignored, and GPREGRET 0x6D stops the bootloader from entering DFU on the wake-up press.

Not in the manual: a short red flash every 3 s on battery, as a sign of life.

Depends on #3927, whose two commits are included here.

Tested on an M6 repeater, with a native test for the LED patterns.

Thanks

A reset during an RTC read left SDA held low, and the RTC probe then
hung every boot. Up to nine clock pulses release the bus.
It resets the board when the main loop stops, as Meshtastic does on
the M6. It pauses while the CPU sleeps.
…anual

The red LED stays on for 10 s at boot, stays on with USB or while
charging, flashes slowly at 3.5 V or less and gives a short flash every
3 s on battery. The blue LED flashes while sending and after each
received packet. Holding the button 4 s and releasing it powers the
board off; the button or the charger wakes it.
The Elecrow manual asks for a long press to power on, with the red LED
lighting after 3 s. A shorter press now puts the board back to sleep; a
wake-up by the charger still boots at once.
A press too short to power on now goes back to sleep through the normal
power-off path, so the radio sleeps again. The mark in GPREGRET2 is now
SHUTDOWN_REASON_USER, and a release must last 20 ms.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant