diff options
Diffstat (limited to 'wasp/boards/simulator/watch.py')
| -rw-r--r-- | wasp/boards/simulator/watch.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wasp/boards/simulator/watch.py b/wasp/boards/simulator/watch.py index ce281f4..178b1eb 100644 --- a/wasp/boards/simulator/watch.py +++ b/wasp/boards/simulator/watch.py @@ -6,6 +6,12 @@ def sleep_ms(ms): time.sleep(ms / 1000) time.sleep_ms = sleep_ms +import sys, traceback +def print_exception(exc, file=sys.stdout): + exc_type, exc_value, exc_traceback = sys.exc_info() + traceback.print_exception(exc_type, exc_value, exc_traceback, file=file) +sys.print_exception = print_exception + import draw565 from machine import I2C |
