16 #if defined (PICO_BUILD)
17 #include <pico/stdlib.h>
34 #if defined(PICO_BUILD)
35 printf_P(
"%10lu", to_ms_since_boot(get_absolute_time()));
42 timeinfo = localtime(&rawtime);
44 strftime(buffer, 20,
"%F:%H:%M:%S", timeinfo);
85 buffer[index] = (data & 1) + 48;
104 printf_P(
"%lu", (
unsigned long)data);
113 sprintf(fmt_buf,
"%%.%dF", precision);
handler for printf-based function calls
#define printf_P
macro pointing to the natively available printf()
#define RF24LOG_DELIMITER
Change The Delimiter character used in the header prefix of log messages.
void appendTimestamp()
output a timestamp
void appendChar(char data, uint16_t depth=1)
append a character a number of times
void appendUInt(unsigned long data, uint8_t base=10)
append an ‘unsigned’ (only +) number
void appendStr(const char *data)
append a c-string
void appendInt(long data)
append a signed (+/-) number
NativePrintLogger()
Construct a new NativePrintLogger object using stdout.
void appendDouble(double data, uint8_t precision=2)
append a floating point number