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:
Noel Eck
2017-03-08 09:40:56 -08:00
parent b3a5275183
commit 58cdfadf4e
17 changed files with 830 additions and 0 deletions

20
src/p9813/javaupm_p9813.i Normal file
View 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);
}
}
%}