FastLED 3.10.8
Loading...
Searching...
No Matches

◆ write() [2/2]

size_t fl::SerialPort::write ( u8 byte)

Write single byte to serial output.

Parameters
byteByte to write
Returns
Number of bytes written (1 on success, 0 on failure)

Definition at line 35 of file serial.cpp.hpp.

35 {
36 char str[2] = {static_cast<char>(byte), '\0'};
37 fl::print(str);
38 return 1;
39}
uint8_t byte
Definition midi_Defs.h:36
void print(const char *str) FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, and fl::print().

+ Here is the call graph for this function: