#define pinA 26
#define pinB 27
#define pinC 13
#define pinD 18
#define pinE 19
#define pinF 32
#define pinG 32
#define pinT 14
#define pinSel1 3
#define pinSel2 2


const byte pinSegment[8] = {pinA, pinB, pinC, pinD, pinE, pinF, pinG, pinT};

void setup() { 
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");
  pinMode(pinSel1, OUTPUT); 
  pinMode(pinSel2, OUTPUT); 
  for(int8_t x = 0; x<8; x++){
    pinMode(pinSegment[x], OUTPUT);
  }
}

void loop() { 
  digitalWrite(pinSel1, HIGH);
  digitalWrite(pinSel2, HIGH);
  digitalWrite(pinA, LOW);
  // onSegment(1); 
}

void onSegment(int8_t segment){
  digitalWrite(pinSel1, HIGH);
  digitalWrite(pinSel2, HIGH);
  digitalWrite(pinSegment[segment], LOW);
}