Skip to content

speckly/ProtoRainbow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProtoRainbow

This library draws animated rainbow drawings based on a predefined 2D array, on dual 64X32pixels HUB75 LED matrices using the PxMatrix library. A personal project but suitable for protogen suit makers.

Setup

![WARNING] This project assumes that you have 2 HUB75 matrices and you use WS2812B LEDs

In Arduino, install these libraries:

  • PxMatrix
  • Adafruit GFX Library with Adafruit BusIO
  • Framebuffer_GFX with FastLED

Face array requirements

  • Each element of the array represents the state of the pixel, if the element is zero, the pixel will be turned off. A rainbow pixel is drawn if not 0 (I prefer to use a decimal value of 1 because the visual is clearer in the IDE)
  • Must be facing to the right or else both sides will be drawn facing the wrong way exportface
  • Elements are exported as a 32bit RGBA color value. Comma separated exportsettings

Creating your array and usage

I usually use LEDMatrixStudio to export it from a drawn canvas, then replace or add the arrays in ./Frames.h, you might want to change some code in the function loop() so it doesnt crash from missing variables or to work as however you wish ProtoRainbow.ino is an example code using the ProtoRainbow library and FastLED's own rainbow scrolling functions for WS2812B

Currently there is 1 static face and an animation 4x2 frames long is played every 2 rainbow cycles, included in the example code. There are settings to adjust the speed and wavelength of the rainbow scroll

Extras

There is support for sine animations in the library and its properties (period, amp, offset)

ProtoRainbow Demo

ProtoRainbowDemo

About

A rainbow scrolling LED matrix panel driver

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published