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 58 of file fastspi_ref.h.

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

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: