lkml.org 
[lkml]   [2022]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 2/3] dt-bindings: leds: add dt schema for worldsemi,ws2812b-spi
From
On 30/11/2022 01:14, Sebastian Reichel wrote:
>>> + default-intensity:
>>> + description: |
>>> + An array of 3 integer specifying the default intensity of each color
>>> + components in this LED. <255 255 255> if unspecified.
>>> + $ref: /schemas/types.yaml#/definitions/uint32-array
>>> + minItems: 3
>>
>> Drop minItems.... but:
>>
>>> + maxItems: 3
>>> + items:
>>> + minimum: 0
>>> + maximum: 255
>>
>> default: 255
>
> I would argue, that the default should be 0 (off) instead of 255
> (full power).

Yes.

>
>> What controls the intensity? Don't you have PWM there?
>
> WS2812 is a RGB led, which contains a small Microcontroller. The µC
> takes 24 byte intensity data from a serial input and then passes on
> any following bits to the next LED. SPI clk and chip-select are
> ignored (chip-select support can be trivially added though).
>
> You can find them everywhere nowadays, since they are quite cheap
> (a few cents per LED) and need only one MOSI pin to control hundreds
> of LEDs.

OK. This should be anyway existing property, so default-brightness.

Best regards,
Krzysztof

\
 
 \ /
  Last update: 2022-11-30 09:36    [W:0.070 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site