1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00
RIOT/drivers
chrysn 4687504936 drivers/saul/auto_init: Support bool and percent for dimmers
Booleans make sense for dimmers when accessed from a Sith application
that deals in absolutes.

Percent values are also a widespread interpretation of brightness
levels, and are thus supported as well.

The bit arithmetic makes sure that the arithmetic operation value / 100
* saul_pwm_resolution is done efficiently (by expression as a
multiplication followed by shifting) and accurately (by maximizing the
number of usable bits) while still being flexible both with respect to
integer sizes and to changes of saul_pwm_resolution.

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2020-10-17 11:20:30 +02:00
..
2020-09-29 14:42:15 +02:00
2020-09-16 19:55:22 +02:00
2020-09-03 20:20:16 +02:00
2020-09-09 19:38:40 +02:00
2018-06-11 19:10:40 +02:00
2020-05-22 15:52:03 +05:30