Skip to content

Instantly share code, notes, and snippets.

@netmankind
netmankind / gpio.java
Created Aug 26, 2016 — forked from rosterloh/gpio.java
Android class for GPIO control
View gpio.java
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.