7e148414780b071f10bb0aa652c434d2995207ce
Replace the dual-switch handler with one button: short press cycles patterns, long press arms deep sleep with ext1 GPIO wake. Add a heartbeat LED task and fix the IMU test I2C pins to GPIO21/GPIO6. Co-authored-by: Cursor <cursoragent@cursor.com>
led-bar
Install Pipenv
https://pipenv.pypa.io/en/latest/installation.html
Download dependencies
pipenv sync
Install Micropython
https://micropython.org/resources/firmware/ESP32_GENERIC_C3-20241129-v1.24.1.bin
pipenv run esptool.py --port PORTNAME erase_flash
pipenv run esptool.py --port PORTNAME --baud 460800 write_flash 0 ESP32_GENERIC_C3-20241129-v1.24.1.bin
Upload libraries and src
pipenv run ./dev.py PORTNAME lib src
Upload src, reset and follow
pipenv run ./dev.py PORTNAME src reset follow
Connect
Connect to wifi nextwork called led-xxxxxx...
Languages
Python
76.2%
JavaScript
12.3%
HTML
7.3%
CSS
4.2%

