VEML6070: Initial Commit
This commit provides a basic driver for the Vishay VEML6070 UV Sensor. Some functionality might be missing. Binding examples have not been tested as of now. Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
20
src/veml6070/javaupm_veml6070.i
Normal file
20
src/veml6070/javaupm_veml6070.i
Normal file
@@ -0,0 +1,20 @@
|
||||
%module javaupm_veml6070
|
||||
%include "../upm.i"
|
||||
%include "stdint.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%{
|
||||
#include "veml6070.hpp"
|
||||
%}
|
||||
%include "veml6070.hpp"
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_veml6070");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
||||
Reference in New Issue
Block a user