Pol Henarejos
1a4ca13cc7
Add get led mode.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-03-19 01:18:57 +01:00
Pol Henarejos
259c4854df
Fix LED for ESP32S3
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-02-23 00:49:12 +01:00
Pol Henarejos
6e6b524878
Fix led driver build for Pimoroni.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-02-19 15:14:23 +01:00
Pol Henarejos
90fb86be64
Add support for ESP32-S2 build.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-02-19 11:18:11 +01:00
Pol Henarejos
5985548c97
Merge pull request #7 from imkuang/limit-led-update-frequency
...
Limit the frequency of LED status updates
2025-02-09 19:16:29 +01:00
Ming Kuang
29c0d078c3
Update ws2812 pio program and optimized the process of RGB color values
...
1. Update ws2812 pio program to the latest version in pico-examples.
References: https://github.com/raspberrypi/pico-examples/pull/486
2. Modify the rgbw type to false since we don't use the white channel.
3. Optimize the process of RGB color values to avoid a lot of shift
operations and improve readability.
2025-02-09 16:51:22 +08:00
Ming Kuang
1723613b4e
Limit the frequency of LED status updates
...
Unrestricted refreshing of the LED status may cause the WS2812
controller to not work properly.
Observed on my waveshare_rp2040_one board where the LED remains
either constantly on or off, even though the workflow should
dim or turn off/on the LED.
2025-02-09 15:35:42 +08:00
Pol Henarejos
b4c67d2fa5
Add PHY option to keep LED steady.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-01-29 16:27:26 +01:00
Pol Henarejos
6859cedcbf
Use PHY value for LED GPIO number.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-16 13:10:51 +01:00
Pol Henarejos
e4a3124876
Fix PHY for led neopixel.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-11-05 00:29:13 +01:00
Pol Henarejos
0638409ff8
Refactor PHY to support more flexible and scalable architecture.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-11-05 00:29:13 +01:00
Pol Henarejos
a816b6f747
Added PHY options to control the brigthness of the LED and its dimming.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-09-27 20:55:49 +02:00
Pol Henarejos
058473dce9
Add LED compatibility for other boards.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-09-27 19:57:58 +02:00
Pol Henarejos
037e760879
For compatibility with single led boards, mounted/not mounted led modes have to blink.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-09-27 19:38:40 +02:00
Pol Henarejos
50e54ed984
Fix float casting, otherwise it is always 0.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-09-27 19:37:57 +02:00
Benoît Allard
c0012fe2a2
Use the correct shifting value
2024-09-26 19:21:21 +02:00
Benoît Allard
01d1856fcc
Add brightness to the LED mode.
2024-09-25 23:20:48 +02:00
Benoît Allard
7a0b67f3cb
led: Rename 'blink' to 'mode'
2024-09-25 21:46:33 +02:00
Pol Henarejos
86674fd6ca
Fix build for WS2812 boards.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-09-25 12:00:50 +02:00
Pol Henarejos
ea6303de81
Add new led module to use colors whenever is possible.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-09-03 18:07:37 +02:00