Transclusion: IOT-GATE-iMX8: User LED

From Compulab Mediawiki
Jump to: navigation, search

The user LED is controlled by the following SoC GPIOs:

  • GPIO3_19, pin number 83
  • GPIO3_25, pin number 89

Set LED Color

Use the following commands to set the LED state:

  • Off
root@iot-gate-imx8:~# gpioset 2 25=0; gpioset 2 19=0
  • Green
root@iot-gate-imx8:~# gpioset 2 25=1; gpioset 2 19=0
  • Yellow
root@iot-gate-imx8:~# gpioset 2 25=0; gpioset 2 19=1
  • Orange
root@iot-gate-imx8:~# gpioset 2 25=1; gpioset 2 19=1