Show error after xBox controller disconnected the TechnicHub #1928
BertLindeman
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment using an xBox controller on a TechnicHub disconnects the hub.
No way to see any exception then.
The error / exception can be written to the user storage on the hub.
After reconnect that info can be shown in the REPL.
(click the small triangle(s) below to see more)
REPL explanation
The REPL (Read-Eval-Print Loop) is an interactive tool that lets you type Python commands, run them, and see the results immediately.Start the REPL in code.pybricks.com by pressing the Blue ">>>" button after the hub is connected.
program to show how to write exception data to user storage: "technichub_save_exception.py"
Demo xbox program: "test_xbox_on_technichub.py"
While testing the demo program I needed to use the exception data in storage a few times.
I can say it works.
Tested on stable version in code.pybricks.com and beta.
Hope it is not too complicated for beginners and I am curious about the comments of others.
Knowing me I will [EDIT] this post a few times to repair my typo's. 😃
Bert
Beta Was this translation helpful? Give feedback.
All reactions