(2024-09/2024-12)
Lua interface for sending data to RGB stripe.
RGB stripe is connected to Arduino. Arduino is connected to USB.
USB can be accessed as "file" /dev/ttyUSB0 or something like that.
On Arduino is firmware (written by me in C++). It has text interface.
So you can always connect to device via serial interface (try
Serial Monitor from Arduino IDE or Arduino CLI). 115200 baud.
Password.. no password, just connect and type ?.
We're implementing subset of supported commands.
- Interface
SetPixel(Index, Color)sets pixel in device memorySetPixels(Index, Colors)sets pixels in device memoryDisplay()displays device memory on LED stripeReset()resets device memory (makes pixels black)
We're providing test/usage examples:
- 1_SetPixel -- set specific pixels
- 2_SetPixels -- set whole stripe to image line
- 3_Scrolling_image -- demo of "smooth" scrolling
Hardware
- Ws2812B (aka Neopixel) LED stripe
- ATmega328/P (aka Arduino Uno)
- Standalone 5V power supply is recommended
Firmware
- That repo (Server interface)
avrdudearduino-cli
Software
- Linux (for
/dev/ttyUSB0) - Lua 5.3+
- This repo (Client interface)
