Reverse direction so single LED goes in RGBW order.

This commit is contained in:
Derek Jamison 2023-11-26 13:02:00 -06:00
parent e517031c7c
commit 4abe084717
2 changed files with 6 additions and 6 deletions

View File

@ -312,11 +312,11 @@ static bool led_tester_custom_event_callback(void* context, uint32_t event) {
// Rotate the pattern // Rotate the pattern
for(int i = 0; i < offset; i++) { for(int i = 0; i < offset; i++) {
uint32_t tmp = rgb[3]; uint32_t tmp = rgb[0];
rgb[3] = rgb[2]; rgb[0] = rgb[1];
rgb[2] = rgb[1]; rgb[1] = rgb[2];
rgb[1] = rgb[0]; rgb[2] = rgb[3];
rgb[0] = tmp; rgb[3] = tmp;
} }
// If deinit, turn off the LEDs // If deinit, turn off the LEDs

View File

@ -3,7 +3,7 @@ App(
name="WS2812B LED Tester App", name="WS2812B LED Tester App",
apptype=FlipperAppType.EXTERNAL, apptype=FlipperAppType.EXTERNAL,
entry_point="ws2812b_led_tester_app", entry_point="ws2812b_led_tester_app",
fap_version=(1, 3), fap_version=(1, 4),
stack_size=4 * 1024, stack_size=4 * 1024,
requires=[ requires=[
"gui", "gui",