Skip to content

Instantly share code, notes, and snippets.

@netmankind
netmankind / gpio.java
Created August 26, 2016 07:08 — forked from rosterloh/gpio.java
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 {