Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. void pulseLed()
  2. {
  3. if (state == pulsing && counter_tim == 0)
  4. {
  5. send_info("pusl1");
  6. if (brightning == false && brightness > 0)
  7. {
  8. set_led_brightness(brightness--);
  9. counter_tim = 1;
  10.  
  11. if (brightness == 0)
  12. brightning = true;
  13. }
  14. else if (brightning == true && brightness < 1000)
  15. {
  16. set_led_brightness(brightness++);
  17. counter_tim = 1;
  18.  
  19. if (brightness == 1000)
  20. brightning = false;
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement