Each of the three LEDs can be red, green, or amber.
Each has a script you can use to set the LED state:
led-ared
led-bgreen
led-camber
led-aoff
You do not need to use sudo to control the LEDs.
You can simply add the users you want to have control of the LEDs to the leds group.
By default, all three of these LEDs will turn amber when the gateway is powered on and
then turn off after the device boots.
Each of the three LEDs is controlled by a pair of GPIOs from the i.MX6 processor,
with one controlling the red, one controlling the green,
and the two of them together generating amber.
If you would rather control the LEDs using the GPIOs rather than the scripts, these are the lines for
each LED and color:
The unit’s SNAP module controls the tri-color LED labeled “SNAP”
via GPIO_A4 (green) and GPIO_A5 (red). (For amber, use both green and red.)
This LED is only accessible via the SNAP module.
It cannot be controlled by the E20’s i.MX6 processor, except through calls to the SNAP module.
These two IO lines from the SNAP module will light their respective colors when written high.
This sample code demonstrates its use:
The three buttons on the left side of the SNAPconnect E20 are fully user-accessible.
There are button commands that print the button status to STDIO
and return the button status (as 1 for up or 0 for pressed):
button-1
button-2
button-3
You can monitor the i.MX6 processor GPIOs directly rather than using the
Bash scripts if you find that to be easier: