![Synapse SNAP Connect E20 User Manual Download Page 7](http://html1.mh-extra.com/html/synapse/snap-connect-e20/snap-connect-e20_user-manual_1420478007.webp)
5.
User Buttons and LEDs
The E20 has 3 user-programmable buttons, and 6 user-programmable tri-color LEDs.
GPIO 40: LED-A red
GPIO 41: LED-A green
GPIO 42: LED-B red
GPIO 43: LED-B green
GPIO 44: LED-C red
GPIO 45: LED-C green
GPIO 117: Button 1
GPIO 118: Button 2
GPIO 119: Button 3
For convenience, programs are pre-installed on the E20 to interact with these peripherals:
Controlling LEDs
•
Provided by package e20-leds:
o
/usr/local/bin/led-a
o
/usr/local/bin/led-b
o
/usr/local/bin/led-c
•
Usage:
o
led-a red
o
led-a green
o
led-a amber
o
led-a off
Reading the buttons:
•
Provided by package e20-buttons:
o
/usr/local/bin/button-1
o
/usr/local/bin/button-2
o
/usr/local/bin/button-3
•
Prints the button status (1 = up, 0 = pressed)
•
Also returns this number as the exit code
o
Can be retrieved via the shell environment variable
$?
immediately after execution.
SNAP Connect E20 Users Guide
5
Preliminary
- Pre-Release
Version