Contents Menu Expand Light mode Dark mode Auto light/dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
dooropenerpico documentation
Logo
dooropenerpico documentation
  • Project overview
  • Video and images
  • Required skills
  • Software requirements
  • Bill of materials
  • Printing the models
  • Wiring and assembly
  • Deployment and setup
  • Usage
  • Troubleshooting and known issues
  • Development
  • API documentation
    • Class structure overview
    • Conf
    • DoorOpenerPico
    • DoorOpenerPicoBase
    • DoorOpenerPicoNetwork
    • DoorOpenerPicoWeb
    • Print_debug
  • Licencing and acknowledgements
  • Contacts
Back to top
View this page

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

print_timestamps

Boolean; whether to print timestamps.

rtc

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.

Next
Licencing and acknowledgements
Previous
DoorOpenerPicoWeb
Copyright © 2024 CC-BY-4.0, dwhweb
Made with Sphinx and @pradyunsg's Furo
On this page
  • Print_debug
    • Print_debug
      • __init__()
      • print_debug()
      • print_timestamps
      • rtc