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

◆ writeBit() [3/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,
data_t hival,
data_t loval,
clock_t hiclock,
clock_t loclock )
inlinestaticprivate

The version of writeBit() to use when clock and data are on separate pins with precomputed values for setting the clock and data pins.

Definition at line 194 of file fastspi_bitbang.h.

195 {
196 // // only need to explicitly set clock hi if clock and data are on different ports
197 if(b & (1 << BIT)) {
201 } else {
202 // FL_NOP;
206 }
207 }
Software SPI (aka bit-banging) support Includes aggressive optimizations for when the clock and data ...
static void fastset(FASTLED_REGISTER port_ptr_t port, FASTLED_REGISTER port_t val)
Set the state of a port.
Definition fastpin.h:257

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

+ Here is the call graph for this function: