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

◆ writeBytes() [1/2]

template<uint8_t _DATA_PIN, uint8_t _CLOCK_PIN, uint32_t _SPI_CLOCK_DIVIDER>
template<class D>
void REFHardwareSPIOutput< _DATA_PIN, _CLOCK_PIN, _SPI_CLOCK_DIVIDER >::writeBytes ( FASTLED_REGISTER uint8_t * data,
int len )
inline

A full cycle of writing a value for len bytes, including select, release, and waiting.

Definition at line 60 of file fastspi_ref.h.

60 {
61 uint8_t *end = data + len;
62 select();
63 // could be optimized to write 16bit words out instead of 8bit bytes
64 while(data != end) {
66 }
68 waitFully();
69 release();
70 }
static void writeByte(uint8_t b)
write a byte out via SPI (returns immediately on writing register)
Definition fastspi_ref.h:44
void release()
release the CS select
Definition fastspi_ref.h:38
void select()
latch the CS select
Definition fastspi_ref.h:35
static void waitFully()
wait until all queued up data has been written
Definition fastspi_ref.h:41
A skeletal implementation of hardware SPI support.
Definition fastspi_ref.h:18

References FASTLED_REGISTER, release(), select(), waitFully(), and writeByte().

Referenced by writeBytes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: