forked from pludi/LEDDisplay
Formatting
This commit is contained in:
parent
cd0eeaf5c3
commit
715b39e9f1
|
@ -2,34 +2,38 @@
|
||||||
#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.setTextSize(1);
|
matrix.begin();
|
||||||
matrix.setTextColor(matrix.Color(0,0,100));
|
matrix.setTextSize(1);
|
||||||
Serial.begin(9600);
|
matrix.setTextColor(matrix.Color(0, 0, 100));
|
||||||
matrix.setTextWrap(false);
|
Serial.begin(9600);
|
||||||
Serial.println("Setup Done");
|
matrix.setTextWrap(false);
|
||||||
|
Serial.println("Setup Done");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop(){
|
void loop()
|
||||||
matrix.fillScreen(matrix.Color(0,0,0));
|
{
|
||||||
matrix.setCursor(i,0);
|
matrix.fillScreen(matrix.Color(0, 0, 0));
|
||||||
matrix.setTextColor(matrix.Color(0,0,128));
|
matrix.setCursor(i, 0);
|
||||||
matrix.print("/usr/space @36C3");
|
matrix.setTextColor(matrix.Color(0, 0, 128));
|
||||||
matrix.setTextColor(matrix.Color(64,0,0));
|
matrix.print("/usr/space @36C3");
|
||||||
matrix.setCursor(i*3,8);
|
matrix.setTextColor(matrix.Color(64, 0, 0));
|
||||||
matrix.print("Sticker Exchange Sticker Exchange");
|
matrix.setCursor(i*3, 8);
|
||||||
portDISABLE_INTERRUPTS();
|
matrix.print("Sticker Exchange Sticker Exchange");
|
||||||
delay(1);
|
portDISABLE_INTERRUPTS();
|
||||||
matrix.show();
|
delay(1);
|
||||||
portENABLE_INTERRUPTS();
|
matrix.show();
|
||||||
if(--i<-16*6)
|
portENABLE_INTERRUPTS();
|
||||||
i=matrix.width();
|
if(--i < -16*6)
|
||||||
delay(249);
|
i = matrix.width();
|
||||||
|
delay(249);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue