
distinctive heartbeat pattern.
LEDs can be manually controlled from the Linux shell prompt. For
example, to switch on LED2:
echo 255 > /sys/class/leds/led2/brightness
And to switch it off:
echo 0 > /sys/class/leds/led2/brightness
EXTENSION PORT
The board has an extension port EXT with eleven GPIO pins that can be
controlled from user-space Linux applications. The available pins are:
AT91
PIO
Directory name
under /sys/class/gpio
EXT
pin#
Notes
--
--
1
+3.3V
--
--
2
GND
PA7
gpio39
8
PA8
gpio40
9
PB4
gpio68
10
PB30
gpio94
11
PC4
gpio100
13
Not available when SD/MMC is enabled
PC5
gpio101
14
PC6
gpio102
15
PC7
gpio103
16
Not available when SD/MMC is enabled
PC12
gpio108
17
PC13
gpio109
18
--
--
19
+5V
--
--
20
GND
In order to setup a pin direction user must write the string “high”, “low”,
“out” or “in” to the file /sys/class/gpio/gpio-extX/direction in order to
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from