Skip to content

Instantly share code, notes, and snippets.

Avatar

Lucas Paul L4grange

View GitHub Profile
@L4grange
L4grange / GPIO.java
Last active Sep 27, 2019 — forked from rosterloh/gpio.java
Android class for GPIO control
View GPIO.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
This class allows you to control GPIO pins form android, by abstracting the command line excecution into a java class.
IMPORTANT NOTE: Requires root to run, since it is required to write to GPIO ports in /sys/class/gpio/
*/
public class GPIO {
You can’t perform that action at this time.