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
|
// 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
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user