Hello, I'm trying to do a fun flow where the flash LED will cycle through the RGB colors (or at least these, in order: red, purple, blue, light blue, green, yellow) when charging the phone. The trigger is when power is connected. For action, I tried creating notification on statusbar (flash LED: red 200ms on, 200ms off), follow by a sleep 200ms action, then another notification on statusbar (flash LED: purple 200ms on, 200ms off), sleep 200ms, etc for the remaining colors. But when I tested it, everything ran so fast and ONLY the last color is flashing (ie. the last notification with LED yellow).
How can I make the LED flashes the different colors in succession and then repeat itself, until I disconnect the phone from the power source?
Flash LED cycling RGB colors when charging phone?
Moderator: Martin
Re: Flash LED cycling RGB colors when charging phone?
The LED doesn't work at mine. Simple notification works by blinking the LED (my phone only has white) without setting the flash LED.
Try to increase the on off period, maybe to 2000 ms. Try also to put action sleep between the notif. You can loop it indefinitely by connecting the last element to the starting notif. To stop the flow, use other flow with trigger power disconnected and action stop flow, choose this looping flow.
Try to increase the on off period, maybe to 2000 ms. Try also to put action sleep between the notif. You can loop it indefinitely by connecting the last element to the starting notif. To stop the flow, use other flow with trigger power disconnected and action stop flow, choose this looping flow.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Flash LED cycling RGB colors when charging phone?
Thanks. After various trials and errors, I gave up. The LED were flashing sporadically even after setting them seconds apart with my old idea. I've decided to change LED colors base on battery percentage now, and so far it has been working nicely. And more informatively also, since I'll know what % my battery is generally at by looking at the LED color when it is charging.