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