12
SNAPconnect E12 User Guide — 116-081614-030-B001
setPinDir(GREEN, True)
LED_off()
def LED_off():
writePin(RED, False)
writePin(GREEN, False)
def LED_green():
writePin(GREEN, True)
writePin(RED, False)
def LED_red():
writePin(GREEN, False)
writePin(RED, True)
def LED_amber():
writePin(RED, True)
writePin(GREEN, True)
LED A is the only LED controllable directly from the SNAP module. The other three LEDs are controlled from the E12’s
AM335x processor.
The E12 Button
The button on the bottom of the E12 is fully user-accessible. You can monitor the button state at GPIO 112. The E12-
buttons package provides a Bash script that prints the button status to STDIO and returns the button status (as 1 for
up or 0 for pressed).
You can monitor the AM335x processor GPIO directly rather than using the Bash script if you find that to be easier.
Unlike the Bash script that set states on the E12, this script does not require sudo access to run.
Summary of Contents for SNAPconnect E12
Page 30: ...26 SNAPconnect E12 User Guide 116 081614 030 B001 E12 Dimensions ...
Page 34: ......
Page 35: ......