Print_debug¶
- class Print_debug¶
A utility class that allows you to print a debug message to the console with an optional timestamp. The RTC of the Pi Pico is set automatically by the Thonny IDE, if you are using it.
- __init__()¶
Methods
__init__()print_debug(message)Prints a debug message, including an optional timestamp if print_timestamps is True.
Attributes
Boolean; whether to print timestamps.
The realtime clock of the Pi Pico.
- static print_debug(message)¶
Prints a debug message, including an optional timestamp if print_timestamps is True.
- Parameters:
message (str) – The message to print.
- print_timestamps = True¶
Boolean; whether to print timestamps.
- rtc¶
The realtime clock of the Pi Pico.