8#include "platforms/is_platform.h"
13#if defined(FL_IS_AVR) && defined(ARDUINO)
14#define FL_SERIAL_BEGIN_INLINE 1
19#define FL_SERIAL_BEGIN_INLINE 0
25template <
typename>
class function;
112#if FL_SERIAL_BEGIN_INLINE
134#ifndef FL_DBG_PRINTLN_DECLARED
197#ifdef FASTLED_TESTING
201using println_handler_t =
fl::function<void(
const char*)>;
208void inject_print_handler(
const print_handler_t& handler)
FL_NO_EXCEPT;
209void inject_println_handler(
const println_handler_t& handler)
FL_NO_EXCEPT;
210void inject_available_handler(
const available_handler_t& handler)
FL_NO_EXCEPT;
211void inject_read_handler(
const read_handler_t& handler)
FL_NO_EXCEPT;
212void inject_flush_handler(
const flush_handler_t& handler)
FL_NO_EXCEPT;
213void inject_write_bytes_handler(
const write_bytes_handler_t& handler)
FL_NO_EXCEPT;
ScopedLogDisable(ScopedLogDisable &&other) FL_NO_EXCEPT
ScopedLogDisable(const ScopedLogDisable &) FL_NO_EXCEPT=delete
ScopedLogDisable() FL_NO_EXCEPT
Constructor - saves current log level and disables logging.
ScopedLogDisable & operator=(const ScopedLogDisable &) FL_NO_EXCEPT=delete
~ScopedLogDisable() FL_NO_EXCEPT
Destructor - restores previous log level.
ScopedLogDisable & operator=(ScopedLogDisable &&) FL_NO_EXCEPT=delete
u8 getLogLevel() FL_NO_EXCEPT
Get the current global log level.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
void print(const char *str) FL_NO_EXCEPT
bool readStringUntil(sstream &out, char delimiter, char skipChar, fl::optional< u32 > timeoutMs) FL_NO_EXCEPT
bool serial_ready() FL_NO_EXCEPT
void setLogLevel(u8 level) FL_NO_EXCEPT
Set the global log level.
fl::optional< fl::string > readLine(char delimiter, char skipChar, fl::optional< u32 > timeoutMs) FL_NO_EXCEPT
size_t write_bytes(const u8 *buffer, size_t size) FL_NO_EXCEPT
void serial_begin(u32 baudRate) FL_NO_EXCEPT
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.
bool flush(u32 timeoutMs) FL_NO_EXCEPT
constexpr nullopt_t nullopt
void println(const char *str) FL_NO_EXCEPT
int available() FL_NO_EXCEPT
Base definition for an LED controller.