int mass[10]={
0b11111100,
0b01100000,
0b11011010,
0b11110010,
0b01100110,
0b10110110,
0b10111110,
0b11100000,
0b11111110,
0b11110110
};
bool GO=true;
unsigned long last_press_time,time2;
int a;
bool press=false;
bool condit_button;
void setup() {
DDRD=254;
DDRB=0<<2;
}
void loop() {
condit_button=(PINB>>2);
if(condit_button==0){
if(millis()-time2>100){
press++;
}
GO=false;
PORTD=mass[a]+1;
} if(condit_button==1){
GO=true;
if(GO==true){
if(millis()-last_press_time>800){
if(a<10){
a++;
PORTD=mass[a];
}else if(a==10){
a=0;
}
last_press_time=millis();
}
}
}
}