FastLED 3.10.8
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 << "), must be 1-32");
143 }
144
145 FL_DBG("ParallelDevice: Created with " << num_pins << " GPIO pins");
146}
fl::unique_ptr< Impl > pImpl
#define FL_WARN(...)
Definition log.h:437
#define FL_DBG
Definition log.h:553
fl::enable_if<!fl::is_array< T >::value, unique_ptr< T > >::type make_unique(Args &&... args) FL_NO_EXCEPT
Definition unique_ptr.h:263

References FL_DBG, fl::FL_NO_EXCEPT, FL_WARN, and fl::adl_barrier::make_unique().

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

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