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 { |