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

◆ ParallelDevice() [1/3]

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

Construct parallel device.

Parameters
configConfiguration with 1-32 GPIO pins

Definition at line 136 of file parallel_device.cpp.hpp.

137 : pImpl(fl::make_unique<Impl>(config)) {
138
139 // Validate configuration
140 size_t num_pins = config.gpio_pins.size();
141 if (num_pins == 0 || num_pins > 32) {
142 FL_WARN("ParallelDevice: Invalid number of GPIO pins (" << num_pins
143 << "), must be 1-32");
144 }
145
146 FL_DBG("ParallelDevice: Created with " << num_pins << " GPIO pins");
147}
fl::unique_ptr< Impl > pImpl
#define FL_WARN(X)
Definition log.h:276
#define FL_DBG
Definition log.h:388
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_DBG, FL_WARN, fl::spi::ParallelDevice::Config::gpio_pins, fl::make_unique(), pImpl, and fl::vector_basic::size().

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

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