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

◆ println() [5/5]

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

Print generic unsigned integer with newline 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 114 of file serial.cpp.hpp.

114 {
115 char buffer[21]; // Enough for 64-bit values
116
117 // Use utoa64 for all types - it handles both 32-bit and 64-bit values
118 // This avoids needing C++17 constexpr if
119 fl::utoa64(static_cast<fl::u64>(value), buffer, 10);
120
121 return println(buffer);
122}
size_t println() FL_NO_EXCEPT
Print newline only.
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::println(), fl::type_rank< T >::value, and fl::utoa64().

+ Here is the call graph for this function: