A Python snippet to test the use of LEGO Power Functions with the LEGO EV3 Brick. This code uses Pybricks and an EV3 to Power Functions converter. The converter instructions are available from Christoph Bartneck, Ph.D. and TechnicRobot.
This example activates any Power Functions light and/or motor using full speed forward and full speed reverse. This example was desgned to test if the homemade EV3 to Power Functions converter works with the official LEGO EV3 Python setup.
Diagaram taken from TechnicRobot:
https://www.youtube.com/watch?v=Ns3TODgRlCE