forked from pludi/LEDDisplay
Formatting
This commit is contained in:
parent
cd0eeaf5c3
commit
715b39e9f1
|
@ -2,12 +2,15 @@
|
||||||
#include <Adafruit_NeoMatrix.h>
|
#include <Adafruit_NeoMatrix.h>
|
||||||
#include <Adafruit_NeoPixel.h>
|
#include <Adafruit_NeoPixel.h>
|
||||||
|
|
||||||
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(16, 16, 2, 1, 16, NEO_MATRIX_TOP + NEO_MATRIX_LEFT + NEO_MATRIX_COLUMNS +
|
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(16, 16, 2, 1, 16,
|
||||||
NEO_MATRIX_ZIGZAG + NEO_TILE_TOP + NEO_TILE_LEFT + NEO_TILE_ROWS +
|
NEO_MATRIX_TOP + NEO_MATRIX_LEFT +
|
||||||
NEO_TILE_PROGRESSIVE, NEO_GRB + NEO_KHZ800);;
|
NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG +
|
||||||
|
NEO_TILE_TOP + NEO_TILE_LEFT + NEO_TILE_ROWS +
|
||||||
|
NEO_TILE_PROGRESSIVE, NEO_GRB + NEO_KHZ800);
|
||||||
int i=0;
|
int i=0;
|
||||||
|
|
||||||
void setup(){
|
void setup()
|
||||||
|
{
|
||||||
matrix.begin();
|
matrix.begin();
|
||||||
matrix.setTextSize(1);
|
matrix.setTextSize(1);
|
||||||
matrix.setTextColor(matrix.Color(0, 0, 100));
|
matrix.setTextColor(matrix.Color(0, 0, 100));
|
||||||
|
@ -17,7 +20,8 @@ void setup(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop(){
|
void loop()
|
||||||
|
{
|
||||||
matrix.fillScreen(matrix.Color(0, 0, 0));
|
matrix.fillScreen(matrix.Color(0, 0, 0));
|
||||||
matrix.setCursor(i, 0);
|
matrix.setCursor(i, 0);
|
||||||
matrix.setTextColor(matrix.Color(0, 0, 128));
|
matrix.setTextColor(matrix.Color(0, 0, 128));
|
||||||
|
|
Loading…
Reference in New Issue