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

◆ writeByte() [3/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,
clock_ptr_t clockpin,
data_ptr_t datapin,
data_t hival,
data_t loval,
clock_t hiclock,
clock_t loclock )
inlinestaticprivate

writeByte() implementation with not just registers passed in, but pre-baked values for said registers for data hi/lo and clock hi/lo values.

Note
Weird things will happen if this method is called in cases where the data and clock pins are on the same port! Don't do that!

Definition at line 119 of file fastspi_bitbang.h.

121 {
130 }
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: