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

◆ writeBit() [2/4]

template<uint8_t DATA_PIN, uint8_t CLOCK_PIN, fl::u32 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 182 of file fastspi_bitbang.h.

182 {
183 if(b & (1 << BIT)) {
187 } else {
191 }
192
193 }
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:320
static void hi()
Set the pin state to HIGH
Definition fastpin.h:318

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: