uint8_t myPins[]={9, 10, 11, 12, 13, 7, 6, 8};
uint8_t zahlen[]={
B11111101,
B01100000,
B01100001,
B11011011,
B11111011,
B01100111,
B10110111,
B10111111,
B11100001,
B11111111,
B11110111,
};
void setup() {
// put your setup code here, to run once:
for (uint8_t i=0 ;i< sizeof(myPins)/sizeof(myPins[0]);i++){
pinMode(myPins[i], OUTPUT);
}
}
void loop() {
// put your main code here, to run repeatedly:
for (uint8_t y=0; y<10 ; y++){
delay(200);
for (uint8_t i=0 ;i<sizeof(myPins)/sizeof(myPins[0]); i++) {
digitalWrite(myPins[i], bitRead(zahlen[y], 7-i));
}
delay(200);
}
}