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

◆ writeBit() [2/4]

template<uint8_t DATA_PIN, uint8_t CLOCK_PIN, uint32_t SPI_SPEED>
template<uint8_t BIT>
static FASTLED_FORCE_INLINE void AVRSoftwareSPIOutput< DATA_PIN, CLOCK_PIN, SPI_SPEED >::writeBit ( uint8_t b,
clock_ptr_t clockpin,
data_ptr_t datapin )
inlinestaticprivate

Write the BIT'th bit out via SPI, setting the data pin then strobing the clock, using the passed in pin registers to accelerate access if needed.

Definition at line 179 of file fastspi_bitbang.h.

179 {
180 if(b & (1 << BIT)) {
184 } else {
188 }
189
190 }
Software SPI (aka bit-banging) support Includes aggressive optimizations for when the clock and data ...
static void lo()
Set the pin state to LOW
Definition fastpin.h:241
static void hi()
Set the pin state to HIGH
Definition fastpin.h:239

References CLOCK_HI_DELAY, CLOCK_LO_DELAY, FASTLED_FORCE_INLINE, FastPin< PIN >::hi(), and FastPin< PIN >::lo().

+ Here is the call graph for this function: