v.0.0.9 drawHorizontalScrollText
This commit is contained in:
19
src/main.cpp
19
src/main.cpp
@@ -54,7 +54,7 @@ void playWithBlinkLed()
|
||||
Serial.println("PinStatus: " + led_status);
|
||||
}
|
||||
|
||||
void playWithMatrix()
|
||||
void setupMatrix()
|
||||
{
|
||||
matrix.setBrightness(255);
|
||||
|
||||
@@ -63,10 +63,10 @@ void playWithMatrix()
|
||||
|
||||
// Draw static "HELLO WORLD"
|
||||
matrix.drawText(1, 1, "Hello World!", CRGB::Red);
|
||||
matrix.drawText(1, 9, "<°|`¶>", CRGB::Yellow);
|
||||
matrix.drawText(1, 17, "Bottom", CRGB::Yellow);
|
||||
matrix.drawText(1, 25, "ABCDEFGHIJ.", CRGB::Yellow);
|
||||
matrix.drawText(1, 33, "A", CRGB::Yellow);
|
||||
// matrix.drawText(1, 9, "<°|`¶>", CRGB::Yellow);
|
||||
// matrix.drawText(1, 17, "Bottom", CRGB::Yellow);
|
||||
// matrix.drawText(1, 25, "ABCDEFGHIJ.", CRGB::Yellow);
|
||||
// matrix.drawText(1, 33, "A", CRGB::Yellow);
|
||||
matrix.show();
|
||||
}
|
||||
|
||||
@@ -81,14 +81,15 @@ void setup()
|
||||
delay(10);
|
||||
}
|
||||
|
||||
// playWithMatrix();
|
||||
printCharMatrixSimple('A');
|
||||
number_to_bitarray_msb(0x11FF, 16, true);
|
||||
setupMatrix();
|
||||
// printCharMatrixSimple('A');
|
||||
// number_to_bitarray_msb(0x11FF, 16, true);
|
||||
|
||||
// playWithBlinkLed();
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
delay(1000);
|
||||
matrix.drawHorizontalScrollText(41, "scrolling...", CRGB::Wheat);
|
||||
delay(10);
|
||||
}
|
||||
Reference in New Issue
Block a user