Difference between revisions of "Protocol decoder:Rgb led spi"
Jump to navigation
Jump to search
Uwe Hermann (talk | contribs) (Created page with "{{Infobox protocol decoder | id = rgb_led_spi | name = RGB LED (SPI) | description = Generic RGB LED string protocol (RGB values clocked over SPI) ...") |
Uwe Hermann (talk | contribs) m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
| name = RGB LED (SPI) | | name = RGB LED (SPI) | ||
| description = Generic RGB LED string protocol (RGB values clocked over SPI) | | description = Generic RGB LED string protocol (RGB values clocked over SPI) | ||
| status = | | status = supported | ||
| license = GPLv2+ | | license = GPLv2+ | ||
| source_code_dir = rgb_led_spi | | source_code_dir = rgb_led_spi | ||
| image = [[File:Pd rgb led spi example.png|250px]] | | image = [[File:Pd rgb led spi example.png|250px]] | ||
| input = spi | | input = [[Protocol decoder:spi|spi]] | ||
| output = rgb_led_spi | | output = rgb_led_spi | ||
| probes = — | | probes = — | ||
| optional_probes = — | | optional_probes = — | ||
| options = — | |||
}} | }} | ||
Line 52: | Line 53: | ||
[[Category:Protocol decoder]] | [[Category:Protocol decoder]] | ||
[[Category:SPI]] |
Latest revision as of 23:59, 2 April 2015
Name | RGB LED (SPI) |
---|---|
Description | Generic RGB LED string protocol (RGB values clocked over SPI) |
Status | supported |
License | GPLv2+ |
Source code | decoders/rgb_led_spi |
Input | spi |
Output | rgb_led_spi |
Probes | — |
Optional probes | — |
Options | — |
The rgb_led_spi protocol decoder supports various LED controllers that get RGB color data via SPI in 24bit chunks (3x 8bit SPI words).
Hardware
WorldSemi WS2801 based led string
The led/ws2801 directory in sigrok-dumps contains a set of example captures of the data for a WorldSemi WS2801 based LED string.
The logic analyzer used was a Saleae Logic16 (at 5MHz).
Probe setup:
Probe | WS2801 |
---|---|
1 (black) | UNI1 |
2 (brown) | CLK |
Protocol
The protocol is SPI-based and expects 24bit RGB values, i.e. 3 SPI words of 8bits each.
Since only one direction is needed in some cases, it is sufficient to have the CLK and (e.g.) MOSI SPI line available.