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 298 of file fastspi_bitbang.h.
298 {
300#ifdef FAST_SPI_INTERRUPTS_WRITE_PINS
304 }
305#else
308
310
311
317
320 }
321
322 } else {
323
324
329
331
334 }
335
336 }
337#endif
340 }
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().