//
// Demo using 4 NeoMatrix panels as a single LED panel.
//
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#define PIN 8
Adafruit_NeoMatrix panel = Adafruit_NeoMatrix(8, 8, 2, 2, PIN,
NEO_MATRIX_TOP + NEO_MATRIX_LEFT + NEO_MATRIX_ROWS + NEO_MATRIX_PROGRESSIVE +
NEO_TILE_TOP + NEO_TILE_LEFT + NEO_TILE_ROWS + NEO_TILE_PROGRESSIVE,
NEO_GRB + NEO_KHZ800);
//
// Setup function
//
void setup() {
panel.begin();
panel.setBrightness(255);
}
//
// Define some colors
//
uint16_t red = panel.Color(255,0,0);
uint16_t blue = panel.Color(0,0,255);
//
// Loop function
//
void loop() {
for (int i=0; i<=255; i++) {
panel.setPixelColor(i,0,0,255);
panel.show();
//delay(0);
}
for (int x=0; x<=16; x++) {
for (int y=0; y<=16; y++) {
panel.drawPixel(x,y,panel.Color(255,0,0));
panel.show();
//delay(0);
}
}
}