User Tools

Site Tools


This is an old revision of the document!


pins located at: /sys/class/gpio

Initialize/Remove a gpio connection:

  • echo <pin number> into “/sys/class/gpio/export” to create a gpio connection with pin <pin numebr>.
  • echo <pin number> into “/sys/class/gpio/unexport” to remove an existing connection

Using a gpio connection:

  • echo (“in”|“out”) into “/sys/class/gpio/gpio<pin number>/direction” to specify the mode of writing or reading.
  • echo (“1”|“0”) into “/sys/class/gpio/gpio<pin number>/value” to turn (on|off) a port

Test 1:

  • Raspberry pi + Arduino, GPIO test light blink

  • arduino hookup

  • rasberry hookup



robot.1391213925.txt.gz · Last modified: 2014/02/01 00:18 by jgensler8