3.1 VNS-10W01 LED Programmer's Reference manual
3.1.1
Android Studio
Put the ledlib.jar into the app "libs" folder
●
Set the jar file as library
●
3.1.2
Sample code
import this library in java file
●
You can use the sample code to run any super user command as follows.
●
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
LEDlibrary mLed = new LEDlibrary(this);
//mLed.LedOpen(mLed.RED_LED);
//mLed.LedOpen(mLed.GREEN_LED);
mLed.LedClose();
}
Quick Reference Guide
VNS-10W01 Quick Reference Guide 19