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

Detailed Description

SK9822 SPI chipset encoder.

Free function encoder for SK9822 chipsets. SK9822 is nearly identical to APA102, with one key difference: end frame uses 0x00 instead of 0xFF.

Protocol:

  • Start frame: 4 bytes of 0x00
  • LED data: [0xE0|brightness][B][G][R] (4 bytes per LED)
  • End frame: ⌈num_leds/32⌉ DWords of 0x00 (differs from APA102)

Brightness modes:

  • Global: All LEDs use same 5-bit brightness
  • Per-LED: Each LED has individual brightness
  • Full: All LEDs at maximum brightness (31)

Definition in file sk9822.h.

+ Include dependency graph for sk9822.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::encodeSK9822 (InputIterator first, InputIterator last, OutputIterator out, u8 global_brightness=31) FL_NOEXCEPT
 Encode pixel data in SK9822 format with global brightness.
 
template<typename InputIterator, typename OutputIterator>
FL_NO_INLINE_IF_AVR void fl::encodeSK9822_AutoBrightness (InputIterator first, InputIterator last, OutputIterator out) FL_NOEXCEPT
 Encode pixel data in SK9822 format (auto-detected brightness from first pixel)
 
template<typename InputIterator, typename BrightnessIterator, typename OutputIterator>
void fl::encodeSK9822_HD (InputIterator first, InputIterator last, BrightnessIterator brightness_first, OutputIterator out) FL_NOEXCEPT
 Encode pixel data in SK9822 format with per-LED brightness.