byte segTR=6, buton1=4, buton2=3, pinler[]={10,12,9,11};//D-C-B-A; 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 ; i++) pinMode(pinler[i], OUTPUT); pinMode(segTR, OUTPUT); pinMode(buton1, INPUT); pinMode(buton2, INPUT); } void loop() { if(digitalRead(buton1)==0) { 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],segVeri[rakam][i]); delay(500); } if(digitalRead(buton2)==0) { digitalWrite(segTR,0); for(byte rakam=0;rakam<=0;rakam++) for(byte i=0; i<=3; i++) for(byte i=0; i<=3; i++) digitalWrite (pinler[i],segVeri[rakam][i]); delay(500); } }