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:
Abhishek Malik
2017-05-04 00:33:20 -07:00
parent cdb735c34e
commit e7ca8cf18b
14 changed files with 680 additions and 0 deletions

View 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);
}
}
%}