GPIO

From Wiki for Dragino Project
Revision as of 08:02, 29 April 2011 by Edwin (Talk | contribs) (Created page with "The Dragino MS12 has five GPIOs pins avaible on the 2x8 connctor for easy use. They are GPIO0~ GPIO4. these GPIOs connects to the Atheros ar2317 directly and can be control via o...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Dragino MS12 has five GPIOs pins avaible on the 2x8 connctor for easy use. They are GPIO0~ GPIO4. these GPIOs connects to the Atheros ar2317 directly and can be control via openwrt command gpioctl command.

The input and ouput voltage of these GPIO is 3.3v.

gpio command:

root@dragino:~# gpioctl
gpioctl dirin|dirout|get|set|clear gpio
dirin: configure GPIO pin as input
dirout: configure the GPIO pin as output
get: get the GPIO status: HIGH or LOW
set: set the GPIO to HIGH
clear: set the GPIO to LOW

examples:

set GPIO4 to output HIGH (3.3v)

root@dragino:~# gpioctl dirout 4
using gpio pin 4
root@dragino:~# gpioctl set 4
using gpio pin 4