#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include <Adafruit_GFX.h>
const int PIN = 6
const int SIZE = 16
Adafruit_NeoMatrix matrix = Adafruit_NeoMAtrix(SIZE, SIZE, PIN,
NEO_MATRIX_BOTTOM + NEO_MATRIX_LEFT + NEO_MATRIX_ROWS + NEO_MATRIX_ZIGZAG,
NEO_GRB + NEO_KHZ800);
void setup() {
matrix.begin(); // put your setup code here, to run once:
matrix.setBrightness(150);
}
int x = 0; // variable for horizontal position
int y = 0; // variable for vertical position
int x2 = 2;
int y2 = 2;
uint16_t colR = matrix.Color(255,0,0); //variable for red
uint16_t colG = matrix.Color(0,255,0); //variable for green
uint16_t colB = matrix.Color(0,0,255); //variable for blue
void loop() {
matrix.fillScreen(0);
}