FastLED 3.9.15
Loading...
Searching...
No Matches

◆ SpiConfig() [2/3]

fl::SpiConfig::SpiConfig ( int clk,
int data,
u32 speed_hz = 0xffffffff,
spi_output_mode_t output_mode = spi_output_mode_t::SPI_AUTO,
u8 spi_mode = 0 )
inline

Construct single-lane SPI config.

Definition at line 48 of file config.h.

49 : clock_pin(clk)
50 , clock_speed_hz(speed_hz)
53 data_pins.push_back(data);
54 }
u32 clock_speed_hz
Clock frequency in Hz (0xffffffff = as fast as possible)
Definition config.h:73
int clock_pin
SCK pin number.
Definition config.h:71
spi_output_mode_t output_mode
Output mode (auto/hw/bitbang/isr)
Definition config.h:74
fl::vector< int > data_pins
Data pins (1 = single-lane, 2-8 = multi-lane)
Definition config.h:72
u8 spi_mode
SPI mode 0-3 (CPOL/CPHA)
Definition config.h:75

References SpiConfig(), clock_pin, clock_speed_hz, data_pins, output_mode, fl::SPI_AUTO, and spi_mode.

+ Here is the call graph for this function: