A Python snippet utilizing the LEGO EV3 infrared sensor and remote, the Dexter BrickPi and BrickPi3. BrickPi3 is the Dexter recommended method of using the BrickPi with Python.
This example assumes the remote is set to the first channel.
This example simply returns the five current remote values:
- Red Up Button
- Red Down Button
- Blue Up Button
- Blue Down Button
- Toggle Button
This example requires the Remote Development VS Code extension to be installed.