The 2 LEDs on the EV3 are connected via GPIOs (2 each). Each LED has 3 colors: red, amber and green. Turning on a single GPIO will change the LED to red or green. Turning on both GPIOs will change the LED to amber (orange).
LED | GPIO | Description |
---|---|---|
0 | 6-13 | Left, Red |
1 | 6-7 | Left, Green |
2 | 6-14 | Right, Green |
3 | 6-12 | Right, Red |
We are using the pwm-gpio and leds-pwm drivers to be able to control the LEDs. This provides a standard interface for using the LEDs. The LED devices are defined in board-legoev3.c.