p9813: Chainable LEDS
Initial commit of the p9813 chainable LED controller. Added C, C++, python, java, and node examples. Signed-off-by: Sergey Kiselev <sergey.kiselev@intel.com> Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
20
src/p9813/javaupm_p9813.i
Normal file
20
src/p9813/javaupm_p9813.i
Normal file
@@ -0,0 +1,20 @@
|
||||
%module javaupm_p9813
|
||||
|
||||
%include "../upm.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%{
|
||||
#include "p9813.hpp"
|
||||
%}
|
||||
%include "p9813.hpp"
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_p9813");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
||||
Reference in New Issue
Block a user