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

◆ Spi() [2/4]

fl::Spi::Spi ( int clock_pin,
fl::span< const int > data_pins,
spi_output_mode_t output_mode = spi_output_mode_t::SPI_HW,
u32 clock_speed_hz = 0xffffffff )

Construct and initialize SPI device.

Parameters
clock_pinClock pin number
data_pinsData pin numbers (1-8 for SPI_HW, up to 32 for software modes)
output_modeOutput mode (SPI_HW for hardware, SPI_BITBANG/SPI_ISR for software)
clock_speed_hzClock speed in Hz (0xffffffff = as fast as possible)

Definition at line 18 of file spi.cpp.hpp.

21 : Spi(SpiConfig(clock_pin, data_pins, clock_speed_hz, output_mode, 0)) {
22}
Spi() FL_NOEXCEPT
Default constructor - creates device in error state.
Definition spi.h:56

References Spi().

+ Here is the call graph for this function: