From be728d7894e566038a026d53ab3829d896117d5a Mon Sep 17 00:00:00 2001 From: void Date: Mon, 7 Apr 2025 18:52:52 +0000 Subject: [PATCH] Update liloled --- liloled | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/liloled b/liloled index 68d9de0..a83b119 100644 --- a/liloled +++ b/liloled @@ -40,10 +40,14 @@ sensor: - platform: adc pin: GPIO34 name: "Knobby" - update_interval: 10ms - attenuation: 11db - filters: - + id: knobby + update_interval: 50ms # nice and quick for responsiveness + attenuation: 12db + filters: + - lambda: return fmaxf(0.14f, x); # Clamp to 0.14 minimum + - sliding_window_moving_average: + window_size: 15 + send_every: 1 binary_sensor: @@ -71,12 +75,33 @@ binary_sensor: filters: - delayed_on: 10ms +output: + - platform: ledc + pin: 17 + id: led_output -switch: - - platform: gpio - pin: 14 - name: "Test LED" - inverted: false # set to true if LED turns on when off +light: + - platform: monochromatic + name: "Test LED Light" + output: led_output + effects: + - pulse: + - pulse: + name: "Fast Pulse" + transition_length: 0.5s + update_interval: 0.5s + min_brightness: 0% + max_brightness: 100% + - pulse: + name: "Slow Pulse" + transition_length: 500ms + update_interval: 2s + - pulse: + name: "Asymmetrical Pulse" + transition_length: + on_length: 1s + off_length: 500ms + update_interval: 1.5s time: - platform: homeassistant