FastLED 3.9.15
Loading...
Searching...
No Matches
p9813.h File Reference

Detailed Description

P9813 SPI chipset encoder.

Free function encoder for P9813 chipsets.

Protocol:

  • Start boundary: 4 bytes of 0x00
  • LED data: [Flag][B][G][R] (4 bytes per LED)
  • End boundary: 4 bytes of 0x00

Flag byte: 0xC0 | checksum

  • Checksum uses top 2 bits of each RGB component
  • Formula: (~B & 0xC0) >> 2 | (~G & 0xC0) >> 4 | (~R & 0xC0) >> 6

Definition in file p9813.h.

+ Include dependency graph for p9813.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Functions

template<typename InputIterator, typename OutputIterator>
void fl::encodeP9813 (InputIterator first, InputIterator last, OutputIterator out) FL_NOEXCEPT
 Encode pixel data in P9813 format.