Rename doublebuffer example to doublebuffer_scrolltext
Also, extra comments explaining some of the calls required for scrolling text like this.
This commit is contained in:
parent
db208212f3
commit
9880ee62d9
2 changed files with 5 additions and 1 deletions
|
|
@ -129,6 +129,10 @@ void setup(void) {
|
|||
matrix.getTextBounds(str, 0, 0, &x1, &y1, &w, &h); // How big is it?
|
||||
textMin = -w; // All text is off left edge when it reaches this point
|
||||
textY = matrix.height() / 2 - (y1 + h / 2); // Center text vertically
|
||||
// Note: when making scrolling text like this, the setTextWrap(false)
|
||||
// call is REQUIRED (to allow text to go off the edge of the matrix),
|
||||
// AND it must be BEFORE the getTextBounds() call (or else that will
|
||||
// return the bounds of "wrapped" text).
|
||||
|
||||
// Set up the colors of the bouncy balls.
|
||||
ballcolor[0] = matrix.color565(0, 20, 0); // Dark green
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
name=Adafruit Protomatter
|
||||
version=1.0.8
|
||||
version=1.0.9
|
||||
author=Adafruit
|
||||
maintainer=Adafruit <info@adafruit.com>
|
||||
sentence=A library for Adafruit RGB LED matrices.
|
||||
|
|
|
|||
Loading…
Reference in a new issue