A simple library for scrolling text on a Colorduino. Updated for Arduino: 1.8.5
Relies on Colorduino Library, using our modified fork: https://github.com/Electromondo-Coding/Colorduino
Constructor takes no arguments
Scroll myScroller
Sets the text used for scrolling, defaults to "EXAMPLE"
myScroller.setText("HELLO GITHUB");
Sets the color of the scrolling text, defaults to green
myScroller.setColor(255,0,0);
Sets the speed between each column change, defaults to 250ms
myScroller.setSpeed(250);
Here is it as currently in Simple_Scroll.ino
#include <Scroll.h>
Scroll myScroll;
void setup() {
myScroll.setText("HELLO GITHUB");
myScroll.setColor(255,0,0);
myScroll.setSpeed(300);
}
void loop() {
myScroll.run();
}
- Currently, the library version of the code seems to produce visible flashing on the colorduino. This is currently underinvestigation, in the mean time, code using just the Colorduino library has been provided under
examples/Standalone_Scroll