mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 19:31:15 +03:00
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:
20
src/led/javaupm_led.i
Normal file
20
src/led/javaupm_led.i
Normal 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);
|
||||
}
|
||||
}
|
||||
%}
|
Reference in New Issue
Block a user