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

◆ applyNibble()

void fl::DigitalMultiWrite8::applyNibble ( const PinList & set,
const PinList & clr )
staticprivate

Definition at line 256 of file pins.cpp.hpp.

256 {
257 for (u8 i = 0; i < set.count; ++i) {
258 fl::digitalWrite(set.pins[i], PinValue::High);
259 }
260 for (u8 i = 0; i < clr.count; ++i) {
261 fl::digitalWrite(clr.pins[i], PinValue::Low);
262 }
263}
unsigned char u8
Definition stdint.h:131
@ Low
Logic low (0V / GND)
Definition pin.h:50
@ High
Logic high (3.3V / 5V, platform-dependent)
Definition pin.h:51
void digitalWrite(int pin, PinValue val)
Write digital value to pin.
Definition pin.cpp.hpp:51

References fl::DigitalMultiWrite8::PinList::count, fl::set< Key, Allocator >::count(), fl::digitalWrite(), fl::High, fl::Low, and fl::DigitalMultiWrite8::PinList::pins.

Referenced by write(), and writeByte().

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