Skip to content

stedio/ColorduinoScrollerLibrary

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorduinoScrollerLibrary

A simple library for scrolling text on a Colorduino. Updated for Arduino: 1.8.5

Dependencies

Relies on Colorduino Library, using our modified fork: https://github.com/Electromondo-Coding/Colorduino

Methods

Constructor

Constructor takes no arguments

Scroll myScroller

setText(String text)

Sets the text used for scrolling, defaults to "EXAMPLE"

myScroller.setText("HELLO GITHUB");

setColor(int r, int g, int b)

Sets the color of the scrolling text, defaults to green

myScroller.setColor(255,0,0);

setSpeed(int speed)

Sets the speed between each column change, defaults to 250ms

myScroller.setSpeed(250);

Example

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();
}

Bugs

  • 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

About

A add on library for Colorduino GFX Library by Adafruit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 70.2%
  • C++ 29.8%