[riot-notifications] [RIOT-OS/RIOT] saul_pwm: auto-init'able RGB LEDs and dimmers (#15106)

Marian Buschsieweke notifications at github.com
Wed Nov 4 11:23:37 CET 2020


OK, I tested on the `nrf52840dongle` (flashed via SWD). According to the output of SAUL there should be one mono-color LED and one RGB LED:

```
2020-11-04 11:16:51,088 # ID	Class		Name
2020-11-04 11:16:51,089 # #0	SENSE_BTN	SW 1
2020-11-04 11:16:51,090 # #1	ACT_DIMMER	LD 1
2020-11-04 11:16:51,092 # #2	ACT_LED_RGB	LD 2
2020-11-04 11:16:51,092 # #3	SENSE_TEMP	NRF_TEMP
```

The LD1 works as expected. However, out of bounds values are not properly handled. IMO one of the two following options would make sense:

1. Report an error for out of bounds values
2. Round too high values down to the maximum brightness

For LD2 only the red channel is working for me. (I'm pretty sure I have a genuine PCBs from nordic.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15106#issuecomment-721646051
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201104/e3ddb0f1/attachment-0001.htm>


More information about the notifications mailing list