Redfern_89

ss

Nov 28th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1.         if (!(PIND & (1 << PD5))) {
  2.             _delay_ms(60);
  3.             if (!(PIND & (1 << PD5))) {
  4.                 interration_cnt++;
  5.                 btnFlag = 1;
  6.                 if (btnFlag = 1 && interration_cnt == 1) {
  7.                     s_hour++;
  8.                     btnFlag = 0;
  9.                 }
  10.                
  11.             } else {
  12.                 interration_cnt = 0;
  13.             }
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment