Ht16k33Multi.Display.Dimming (ht16k33_multi v0.2.2)
View SourceModule for setting the dimming level (brightness) of the Ht16k33 display.
The Ht16k33 supports setting the dimming level, but it does not support reading it back.
use Ht16k33Multi
To simplify usage, please use the Ht16k33Multi
GenServer module,
such as calling Ht16k33Multi.dimming(6)
for ease of interaction.
Dimming Command Format
Dimming command
--------------------------
command | pulse width
set 1 1 1 0 P3 P2 P1 P0
(0xE) (0x0 to 0xF)
Pulse width | Hex value command
-------------------------------
1/16duty <<0xE0>>
[...]
16/16duty <<0xEF>>
Summary
Functions
Sets the dimming level of the display.
Functions
@spec set(integer()) :: <<_::8>>
Sets the dimming level of the display.
Accepts values between 1 and 16, where 1 is the lowest brightness and 16 is the highest. Values below 1 are clamped to 1, and values above 16 are clamped to 16.