4#include "pixel_iterator.h"
8#include "platforms/shared/spi_pixel_writer.h"
10#include "platforms/spi_output_template.h"
24template <
int DATA_PIN, fl::u8 CLOCK_PIN, EOrder RGB_ORDER = RGB, fl::u32 SPI_SPEED = DATA_RATE_MHZ(16)>
26 typedef fl::SPIOutput<DATA_PIN, CLOCK_PIN, SPI_SPEED>
SPI;
32 mSPI.template writeBit<0>(0);
36 mSPI.template writeBit<0>(0);
43 mSPI.endTransaction();
48 #if defined(FL_IS_ESP32)
65 fl::writePixelsToSPI<FLAG_START_BIT, DATA_NOP, RGB_ORDER>(pixels,
mSPI,
nullptr);
CPixelLEDController(RegistrationMode mode) FL_NO_EXCEPT
virtual void init() FL_NO_EXCEPT
Initialize the LED controller.
void writeHeader() FL_NO_EXCEPT
virtual void showPixels(PixelController< RGB_ORDER > &pixels) FL_NO_EXCEPT
Send the LED data to the strip.
fl::SPIOutput< DATA_PIN, CLOCK_PIN, SPI_SPEED > SPI
SM16716Controller() FL_NO_EXCEPT
CLEDController & setSpiBus(Esp32SpiBus bus) FL_NO_EXCEPT
Select an ESP-IDF SPI host for this clocked controller before init().
fl::CLEDController CLEDController
Esp32SpiBus
ESP-IDF SPI host selection for an individual clocked LED controller.
Includes defintions for RGB and HSV pixels.