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

◆ writeByte() [4/4]

template<uint8_t DATA_PIN, uint8_t CLOCK_PIN, uint32_t SPI_SPEED>
static void AVRSoftwareSPIOutput< DATA_PIN, CLOCK_PIN, SPI_SPEED >::writeByte ( uint8_t b,
data_ptr_t datapin,
data_t hival,
data_t loval,
clock_t hiclock,
clock_t loclock )
inlinestaticprivate

writeByte() implementation with the data register passed in and prebaked values for data hi w/clock hi and low and data lo w/clock hi and lo.

This is to be used when clock and data are on the same GPIO register, can get close to getting a bit out the door in 2 clock cycles!

Definition at line 102 of file fastspi_bitbang.h.

104 {
113 }
static void writeBit(uint8_t b)
Write the BIT'th bit out via SPI, setting the data pin then strobing the clock.
Software SPI (aka bit-banging) support Includes aggressive optimizations for when the clock and data ...

References writeBit().

+ Here is the call graph for this function: