A Python snippet utilizing the LEGO EV3 gyroscopic sensor, the Dexter BrickPi and BrickPi3. BrickPi3 is the Dexter recommended method of using the BrickPi with Python.
This example displays the angles detected by the gyroscopic sensor in the terminal.
This example requires the Remote Development VS Code extension to be installed.
Note
The main.py
file may need to be started twice. The Gyro Sensor seems to fail every second execution.