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 181 of file fastspi_bitbang.h.

181 {
182 if(b & (1 << BIT)) {
186 } else {
190 }
191
192 }
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:243
static void hi()
Set the pin state to HIGH
Definition fastpin.h:241

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: