Skip to content

martin-eden/Lua-RgbStripeConsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

121 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What

(2024-09/2024-12)

Lua interface for sending data to RGB stripe.

Image

Components

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

Lua interface

We're implementing subset of supported commands.

  • Interface
  • SetPixel(Index, Color) sets pixel in device memory
  • SetPixels(Index, Colors) sets pixels in device memory
  • Display() displays device memory on LED stripe
  • Reset() resets device memory (makes pixels black)

Examples

We're providing test/usage examples:

Requirements

Hardware

  • Ws2812B (aka Neopixel) LED stripe
  • ATmega328/P (aka Arduino Uno)
  • Standalone 5V power supply is recommended

Firmware

  • That repo (Server interface)
    • avrdude
    • arduino-cli

Software

  • Linux (for /dev/ttyUSB0)
  • Lua 5.3+
  • This repo (Client interface)

See also

About

Generate commands for text protocol to set RGB stripe LEDs on connected device.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages