Skip to content

Instantly share code, notes, and snippets.

netmankind /
Created Aug 26, 2016 — forked from rosterloh/
Android class for GPIO control
public class GPIO {
public String port;
public int pin;
//get direction of gpio
public String getInOut()
String command = String.format("cat /sys/class/gpio/%s/direction",this.port);
try {
You can’t perform that action at this time.