Write an array of data to the SPI interface.
- Template Parameters
-
- Parameters
-
data | pointer to data to write |
len | number of bytes to write |
- Todo
- Need to type this better so that explicit casts into the call aren't required.
Definition at line 296 of file fastspi_bitbang.h.
296 {
298#ifdef FAST_SPI_INTERRUPTS_WRITE_PINS
302 }
303#else
306
308
309
315
318 }
319
320 } else {
321
322
327
329
332 }
333
334 }
335#endif
338 }
void select()
Select the SPI output (chip select)
static void writeByte(uint8_t b)
Write a single byte over SPI.
void release()
Release the SPI chip select line.
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(), release(), select(), and writeByte().
Referenced by writeBytes().