#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(3, 3, 33,
NEO_MATRIX_BOTTOM + NEO_MATRIX_RIGHT +
NEO_MATRIX_ROWS + NEO_MATRIX_PROGRESSIVE,
NEO_GRB + NEO_KHZ800);
const uint16_t PROGMEM image[] = {
0xf800, 0xf020, 0xc9c7,
0xe841, 0x087c, 0xadc4,
0xc9e8, 0xada5, 0x3fe0,
};
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
matrix.begin();
}
void loop() {
// put your main code here, to run repeatedly:
matrix.clear();
matrix.drawPixel(0,2, matrix.Color(255, 255, 0));
matrix.drawLine(0,0,2,2,matrix.Color(150, 0, 255));
matrix.show();
delay(1000);
matrix.drawRGBBitmap(0,0,image,3,3);
matrix.show();
delay(1000);
}