jimmy 8345b31caf Refactor n_chase pattern for bidirectional movement
- Updated n_chase to support bidirectional movement with n3 and n4 parameters
- n3 controls forward steps per direction change
- n4 controls backward steps per direction change
- Pattern alternates between moving forward n3 steps and backward n4 steps
- Each direction repeats for the specified number of steps before switching
- Added test/9.py with n1=20, n2=20, n3=20, n4=-5 parameters
- Updated to run as a thread-based pattern similar to other patterns
2025-10-26 20:39:28 +13:00
2025-01-18 16:26:30 +13:00
2025-02-06 22:45:58 +13:00
2025-05-07 19:46:28 +12:00
2025-01-18 16:26:30 +13:00
2025-10-26 19:03:00 +13:00
2025-01-02 09:12:39 +00:00
2025-09-15 12:58:51 +12:00
2025-02-06 22:45:58 +13:00
2025-01-18 16:26:30 +13:00

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...

http://192.168.4.1/

alt text alt text

Description
No description provided
Readme AGPL-3.0 734 KiB
Languages
Python 100%