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 257 of file fastspi_bitbang.h.
257 {
258#ifdef FAST_SPI_INTERRUPTS_WRITE_PINS
259
260
261
264 }
265#else
267
269
270
278 }
279
280 } else {
281
286
289 }
290 }
291#endif
292 }
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().