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