FastLED 3.9.15
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 75 of file serial.cpp.hpp.

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

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

+ Here is the call graph for this function: