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

◆ writeBytes() [1/2]

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

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

Definition at line 61 of file fastspi_ref.h.

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

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: