alarm=led on/off
which buttons through 0, 1, 2, 3, 4
button0 (INT0) = display present time;
button1 (INT1) = display set alarm screen; cnt++
button2 (INT2) = if(cnt==1) {h++;} if(cnt==2){min++}
button3 (INT3) = if(cnt==1) {h--;} if(cnt==2){min--}
button4 (INT4) = set the present_time == alarm
//----------------------------------------------------//
//-------------http://thisyang.tistory.com-----//
//----------------------------------------------------//
Link to this comment:
All Comments (0)