LED: Added C Src and Example

Changed from Grove LED to LED.

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2016-09-12 16:16:30 -07:00
committed by Noel Eck
parent 1caf805d2b
commit f9a36314fb
17 changed files with 481 additions and 10 deletions

20
src/led/javaupm_led.i Normal file
View File

@ -0,0 +1,20 @@
%module javaupm_led
%include "../upm.i"
%apply int {mraa::Edge}
%include "led.hpp"
%{
#include "led.hpp"
%}
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_led");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}