This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// This program is free software. It comes without any warranty, to | |
// the extent permitted by applicable law. You can redistribute it | |
// and/or modify it under the terms of the Do What The Fuck You Want | |
// To Public License, Version 2, as published by Sam Hocevar. See | |
// | |
// http://sam.zoy.org/wtfpl/COPYING | |
// | |
// for more details. | |
// |