I'm trying to send some data from the hub to the terminal for some debug. But I can't figure out how I can connect the hub via Bluetooth to my PC. I tried to look in the API documentation and maybe I found something but I'm not sure.
-
1Pybricks is great, so is the support they provide, I think you'd be better of asking your question there: github.com/pybricks/support– Michael VerschaeveMar 28 at 7:30
-
2Hi tom and welcome to Bricks.SE! Can you show us what have you tried and how did it fail?– zovitsMar 28 at 7:31
1 Answer
The easiest way to use pybricksdev
is as a command line tool. I recommend using pipx to ensure that your are always using the latest version of pybricksdev
.
Assuming you have already installed pipx
and you have a terminal open in VS Code in the same directory as the script you want to run, run the following command:
pipx run pybricksdev run ble my_script.py
Where my_script.py
is replaced with the actual name of the script you want to run.