A Python snippet utilizing the LEGO EV3 touch sensor, EV3 motors, the Dexter BrickPi and BrickPi3. BrickPi3 is the Dexter recommended method of using the BrickPi with Python.
This example turns on two EV3 motors when the touch sensor is pushed.
This example requires the Remote Development VS Code extension to be installed.