Module ws2818_rgb_led_spi_driver::timings[][src]

Module with all code + comments related to timing. The WS2818 has specific restrictions how long high and low signal must be send on DIN-wire in nanoseconds. All logic and constants needed to cope with this are placed here.

Please note that we have to cope with high frequencies which can be really tricky. Perhaps you need other timings on your device. This was tested on a Raspberry Pi with its SPI device.

See device specification for further details.

Modules

encoding

Timing-encoding specific constants. Actual encoding functions should be inside crate::encoding!

Constants

PI_SPI_HZ

The frequency for the SPI device that should be used. While this was developed I focused on Raspberry Pi. Works on other Linux systems with SPI device probably too if they have a similar frequency. Otherwise you may need to change the values in encoding.rs.