Reverse direction so single LED goes in RGBW order.
This commit is contained in:
parent
e517031c7c
commit
4abe084717
@ -312,11 +312,11 @@ static bool led_tester_custom_event_callback(void* context, uint32_t event) {
|
||||
|
||||
// Rotate the pattern
|
||||
for(int i = 0; i < offset; i++) {
|
||||
uint32_t tmp = rgb[3];
|
||||
rgb[3] = rgb[2];
|
||||
rgb[2] = rgb[1];
|
||||
rgb[1] = rgb[0];
|
||||
rgb[0] = tmp;
|
||||
uint32_t tmp = rgb[0];
|
||||
rgb[0] = rgb[1];
|
||||
rgb[1] = rgb[2];
|
||||
rgb[2] = rgb[3];
|
||||
rgb[3] = tmp;
|
||||
}
|
||||
|
||||
// If deinit, turn off the LEDs
|
||||
|
@ -3,7 +3,7 @@ App(
|
||||
name="WS2812B LED Tester App",
|
||||
apptype=FlipperAppType.EXTERNAL,
|
||||
entry_point="ws2812b_led_tester_app",
|
||||
fap_version=(1, 3),
|
||||
fap_version=(1, 4),
|
||||
stack_size=4 * 1024,
|
||||
requires=[
|
||||
"gui",
|
||||
|
Loading…
Reference in New Issue
Block a user