const int segmentPins[] = {13, 12, 11, 10, 9, 8, 7};
const int fourCommonCathode[] = {0, 1, 1, 0, 0, 1, 1};
void setup() {
for (int i = 0; i < 7; i++) {
pinMode(segmentPins[i], OUTPUT);
digitalWrite(segmentPins[i], fourCommonCathode[i]);
}
}
void loop() {}