A Python snippet utilizing the LEGO EV3 colour sensor, the Dexter BrickPi and BrickPi3. BrickPi3 is the Dexter recommended method of using the BrickPi with Python.
This example detects colour and prints the colour name to the terminal.
This example requires the Remote Development VS Code extension to be installed.