WS2801-Pi
Search…
Ws2801PiConfig
The config is used to configure the module.
There are 3 things that can be configured via the config wich are all optional.
    debug
      if debug is set to true the spi module will not get initialized and the led strip will get simulated.
      type: boolean
      [optional] - default: false
    automaticRendering
      if automaticRendering is set to true calling show will no longer be necessary. The LED strip will get automatically updated as soon as a LED changes.
      type: boolean
      [optional] - default: false
    spiClockSpeed
      sets the clock speed that is used for spi. For a more detailed explanation of SPI have a look at this post.
      type: ClockSpeed
      [optional] - default: ClockSpeed.TwoMHZ

Example

1
const config = {
2
debug: false,
3
automaticRendering: true,
4
spiClockSpeed: ClockSpeed.FourMHZ,
5
};
Copied!
Last modified 1yr ago
Copy link
Contents
Example