110#ifndef FL_DBG_PRINTLN_DECLARED
173#ifdef FASTLED_TESTING
177using println_handler_t =
fl::function<void(
const char*)>;
184void inject_print_handler(
const print_handler_t& handler)
FL_NOEXCEPT;
185void inject_println_handler(
const println_handler_t& handler)
FL_NOEXCEPT;
186void inject_available_handler(
const available_handler_t& handler)
FL_NOEXCEPT;
187void inject_read_handler(
const read_handler_t& handler)
FL_NOEXCEPT;
188void inject_flush_handler(
const flush_handler_t& handler)
FL_NOEXCEPT;
189void inject_write_bytes_handler(
const write_bytes_handler_t& handler)
FL_NOEXCEPT;
ScopedLogDisable() FL_NOEXCEPT
Constructor - saves current log level and disables logging.
ScopedLogDisable(const ScopedLogDisable &) FL_NOEXCEPT=delete
ScopedLogDisable & operator=(const ScopedLogDisable &) FL_NOEXCEPT=delete
~ScopedLogDisable() FL_NOEXCEPT
Destructor - restores previous log level.
ScopedLogDisable(ScopedLogDisable &&other) FL_NOEXCEPT
ScopedLogDisable & operator=(ScopedLogDisable &&) FL_NOEXCEPT=delete
void print(const char *str)
void serial_begin(u32 baudRate)
LogLevel
Log level constants - higher values include more output Prefixed with FL_ to avoid macro collisions (...
@ FL_LOG_LEVEL_INFO
Errors, warnings, and info.
@ FL_LOG_LEVEL_DEBUG
All logging including debug (default)
@ FL_LOG_LEVEL_WARN
Errors and warnings.
@ FL_LOG_LEVEL_NONE
No logging (completely silent)
@ FL_LOG_LEVEL_ERROR
Only errors.
constexpr nullopt_t nullopt
bool readStringUntil(sstream &out, char delimiter, char skipChar, fl::optional< u32 > timeoutMs)
size_t write_bytes(const u8 *buffer, size_t size)
u8 getLogLevel()
Get the current global log level.
void println(const char *str) FL_NOEXCEPT
bool flush(u32 timeoutMs)
void setLogLevel(u8 level)
Set the global log level.
fl::optional< fl::string > readLine(char delimiter, char skipChar, fl::optional< u32 > timeoutMs)
Base definition for an LED controller.