mirror of
https://github.com/eclipse/upm.git
synced 2025-10-29 22:24:48 +03:00
Added the C source for the light sensor with necessary changes to cmake,
examples, docs.
* Renamed all files with grovelight to light
* Replaced all instances of grovelight with light
* Added C source for light sensor
* Updated all cmake files
* Added C example for light sensor
* Split out light sensor from grove library
Signed-off-by: Noel Eck <noel.eck@intel.com>
19 lines
370 B
OpenEdge ABL
19 lines
370 B
OpenEdge ABL
%module javaupm_light
|
|
%include "../upm.i"
|
|
|
|
%{
|
|
#include "light.hpp"
|
|
%}
|
|
|
|
%include "light.hpp"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_light");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%} |