Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void pulseLed()
- {
- if (state == pulsing && counter_tim == 0)
- {
- send_info("pusl1");
- if (brightning == false && brightness > 0)
- {
- set_led_brightness(brightness--);
- counter_tim = 1;
- if (brightness == 0)
- brightning = true;
- }
- else if (brightning == true && brightness < 1000)
- {
- set_led_brightness(brightness++);
- counter_tim = 1;
- if (brightness == 1000)
- brightning = false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement