Advertisement
TDiff

Arduino

Dec 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. // NUM, SCROLL, CAPS Led keys checking.
  2. bool isScrlOn (void) { return ((int(keyboard_leds)& 4) == 4) ? true : false; }
  3. bool isCapsOn (void) { return ((int(keyboard_leds)& 2) == 2) ? true : false; }
  4. bool isNumsOn (void) { return ((int(keyboard_leds)& 1) == 1) ? true : false; }
  5.  
  6. while(bInitialState == isScrlOn()) { pressKey(KEY_SCROLL_LOCK); iDelay += 100; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement