Write multiple bytes of the given value over SPI, without selecting the interface.
Useful for quickly flushing, say, a line of 0's down the line.
- Parameters
-
value | the value to write to the bus |
len | how many copies of the value to write |
Definition at line 254 of file fastspi_bitbang.h.
254 {
255#ifdef FAST_SPI_INTERRUPTS_WRITE_PINS
256
257
258
261 }
262#else
264
266
267
275 }
276
277 } else {
278
283
286 }
287 }
288#endif
289 }
static void writeByte(uint8_t b)
Write a single byte over SPI.
FastPin< CLOCK_PIN >::port_t clock_t
FastPin< DATA_PIN >::port_t data_t
FastPin< DATA_PIN >::port_ptr_t data_ptr_t
FastPin< CLOCK_PIN >::port_ptr_t clock_ptr_t
Software SPI (aka bit-banging) support Includes aggressive optimizations for when the clock and data ...
static port_t hival()
Gets the state of the port with this pin HIGH
static port_t loval()
Gets the state of the port with this pin LOW
static port_t mask()
Get the pin mask.
static port_ptr_t port()
Get the output state of the port.
References FASTLED_REGISTER, FastPin< PIN >::hival(), FastPin< PIN >::loval(), FastPin< PIN >::mask(), FastPin< PIN >::port(), and writeByte().
Referenced by LPD8806Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED >::LPD8806_ADJUST::postBlock(), and writeBytesValue().