We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e674d84 commit be56867Copy full SHA for be56867
faderpunk/src/apps/panner.rs
@@ -451,11 +451,16 @@ pub async fn run(
451
let led_bright = split_unsigned_value(
452
storage.query(|s: &Storage| s.wave).at(lfo_pos as usize),
453
);
454
- leds.set(1, Led::Top, Color::Red, Brightness::Custom(led_bright[0]));
+ leds.set(
455
+ 1,
456
+ Led::Top,
457
+ get_color_for(storage.query(|s: &Storage| s.wave)),
458
+ Brightness::Custom(led_bright[0]),
459
+ );
460
leds.set(
461
1,
462
Led::Bottom,
- Color::Red,
463
464
Brightness::Custom(led_bright[1]),
465
466
}
0 commit comments