void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
#define col 8
#define led 6
int colPins[8] = {12,13, 14, 15,16,17, 18, 19};
int ledPins[6] = {25, 26, 27, 32, 4, 5};
//pinMode(colPins[0], OUTPUT);
//digitalWrite(colPins[0], LOW);
for (int n = 0; n < col; n++) {
pinMode(colPins[n], OUTPUT);
}
for (int n = 0; n < led; n++) {
pinMode(ledPins[n], OUTPUT);
}
for (int n = 0; n < col; n++) {
digitalWrite(colPins[n], LOW);
}
for (int n = 0; n < led; n++) {
digitalWrite(ledPins[n], HIGH);
}
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}