byte segTR=6,buton1=4,buton2=3, pinler[]= {10,11,12,9} byte segVeri[10][4]={{0,0,0,0}, {0,0,0,1}, {0,0,1,0}, {0,0,1,1}, {0,1,0,0}, {0,1,0,1}, {0,1,1,0}, {0,1,1,1}, {1,0,0,0}, {1,0,0,1}}; void setup(){ for(byte i=0; i<=3 ;++) pinMode(pinler[i],OUTPUT); pinMode(segTR,OUTPUT); pinMode(buton1,INPUT); pinMode(buton2,INPUT); } voidloop(){ digitalWrite(segTR,0); for(byte rakam=0;rakam<=9;rakam++){ for(byte i=0; i<=3; i++){ for(byte i=0; i<=3; i++) digitalWrite (pinler[i],segVer[rakam][i]); delay(500); } digitalWrite(segTR,1); delay(1000); }