- "Introduction to Bluetooth Low Energy" by Adafruit.
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
apply plugin: 'com.android.library' | |
android { | |
compileSdkVersion 28 | |
defaultConfig { | |
minSdkVersion 14 | |
targetSdkVersion 28 | |
versionCode 1 | |
versionName "1.0" |