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

◆ print() [4/4]

template<typename T>
fl::enable_if< fl::is_multi_byte_integer< T >::value &&!fl::is_signed< T >::value, size_t >::type fl::SerialPort::print ( T value)
inline

Print generic unsigned integer via SFINAE template Handles u32, unsigned long, and other unsigned multi-byte integers Uses enable_if to avoid duplicate overload issues on platforms where unsigned long == u32.

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

72 {
73 char buffer[21]; // Enough for 64-bit values
74
75 // Use utoa64 for all types - it handles both 32-bit and 64-bit values
76 // This avoids needing C++17 constexpr if
77 fl::utoa64(static_cast<fl::u64>(value), buffer, 10);
78
79 return print(buffer);
80}
size_t print(const char *str) FL_NO_EXCEPT
Print string to serial output.
constexpr int type_rank< T >::value
int utoa64(u64 value, char *sp, int radix) FL_NO_EXCEPT
Convert unsigned 64-bit integer to string buffer in given radix.

References fl::FL_NO_EXCEPT, fl::print(), fl::type_rank< T >::value, and fl::utoa64().

+ Here is the call graph for this function: