Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -5980,8 +5980,10 @@ Params: brightness Set the initial brightness for the LEDs. The
a single byte to offset 0 of the device. Note
that brightness is a multiplier for the pixel
values, and only white pixels can reach the
maximum visible brightness. (range 0-255,
default 255)
maximum visible brightness. N.B. Setting
brightness to 0 acctivates pass-through mode,
disabling all brightness and gamma processing.
(range 0-255, default 255)
dev_name The name for the /dev/ device entry. Note that
if the name includes '%d' it will be replaced
by the instance number. (default 'leds%d')
Expand Down
4 changes: 2 additions & 2 deletions drivers/misc/ws2812-pio-rp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ static uint8_t ws2812_apply_gamma(uint8_t brightness, uint8_t val)
{
int bright;

if (!val)
return 0;
if (!val || !brightness)
return val;
bright = (val * brightness) / 255;
return ws2812_gamma[bright];
}
Expand Down