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

◆ Device() [1/2]

fl::spi::Device::Device ( const Config & config)
explicit

Construct SPI device with configuration.

Parameters
configPin and speed configuration

Definition at line 21 of file device.cpp.hpp.

22 : pImpl(fl::make_unique<Impl>(config)) {
23 FL_LOG_SPI("SPI Device: Created with clock=" << config.clock_pin
24 << " data_pins.size()=" << config.data_pins.size());
25}
fl::unique_ptr< Impl > pImpl
Definition device.h:134
#define FL_LOG_SPI(X)
Serial Peripheral Interface (SPI) logging Logs SPI configuration, initialization, and transfers.
Definition log.h:474
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type make_unique(Args &&... args) FL_NOEXCEPT
Definition unique_ptr.h:261

References fl::SpiConfig::clock_pin, fl::SpiConfig::data_pins, FL_LOG_SPI, fl::make_unique(), pImpl, and fl::vector_basic::size().

Referenced by Device(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: