Skip to content

A tool for debugging and logging in MicroPython scripts on Raspberry Pico and Raspberry Pico W

License

Notifications You must be signed in to change notification settings

PopovGP/picodebug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Picodebug -- a tool for debugging and logging in MicroPython scripts on Raspberry Pico and Raspberry Pico W

Features:

  1. Works without REPL

  2. Works in main.py

  3. Automatic rotation of logs

  4. Using 8 log files of 100KB each, then automatically rotate: log1.txt, log2.txt, log3.txt, log4.txt, log5.txt, log6.txt, log7.txt, log8.txt

  5. All debug messages are stored, not rewrited

  6. Every log message is timestamped

  7. Output to log files and to console

  8. Just use picodebug.logPrint("some log message") in your code

  9. Using with output to log file

import picodebug
picodebug.logPrint("some log message")
  1. Using with output to log file and console
import picodebug
picodebug.logPrint("some log message", True)
  1. Using output to console only
import picodebug
picodebug.logPrint("some log message", True, False)
  1. Using with led for Pico W
board_led = machine.Pin("LED", machine.Pin.OUT)
picodebug.logPrint("some point", led = board_led, numberOfBlinks=2)

About

A tool for debugging and logging in MicroPython scripts on Raspberry Pico and Raspberry Pico W

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages