// B00111111 =0 ,B00000110 =1 ,B01011011 =2 ,
//B01001111 =3,B01100110 =4
// B01101101 =5 ,B01111101 = 6 ,B00000111 =7
//,B01111111 =8 ,B01101111 =9
int binary_number_desplay[] = {
B00111111, B00000110, B01011011,
B01001111, B01100110, B01101101,
B01111101, B00000111, B01111111, B01101111};
void setup()
{
DDRD |= 0b11111111;
}
void loop(){
for(int b=0;b<=9;b++){
PORTD =binary_number_desplay[b];
delay(800);
}
}