February 2020
Intermediate to advanced
432 pages
10h 50m
English
Although you have connected the distance sensor to the I2C-1 port, be aware that GoPiGo3 software libraries will not require you to specify in the script which of the two ports you are using. It will be automatically detected.
The files for testing are located in the ./Chapter2_Unit_Tests/DI-distance folder of the repository. You can upload them one by one to DexterOS:
Afterward, open a shell session in JupyterLab by opening a launcher window and selecting the terminal icon from it. Execute the scripts from the terminal by moving to their location:
$ cd./Chapter2_Unit_Tests/DI-distance$ python <script.py>
The first script is di-distance_cm.py. It takes a reading at ...
Read now
Unlock full access