//
// ESP32 NeoPixel 32x32 Logo Demo - this demo uses four 8x32 panels
// to create a single 32x32 maxtrix.
//

#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>

#define PIN 23

Adafruit_NeoMatrix panel = Adafruit_NeoMatrix(8, 8, 1, 1, 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<=63; i++) {
    panel.setPixelColor(i,0,0,255);
    panel.show();
    //delay(0);  
  }

  for (int x=0; x<=8; x++) {
    for (int y=0; y<=8; y++) {
      panel.drawPixel(x,y,panel.Color(255,0,0)); 
      panel.show();
      //delay(0); 
    } 
  }

}