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