mirror of
https://github.com/eclipse/upm.git
synced 2025-03-22 00:17:30 +03:00

This driver was developed with a DFRobot SHT10 Temperature and Humidity sensor. This driver should work on all SHT1X devices. It requires a 10K pull-up resistor connected to the data pin. The sensor can be run at differing voltages from 2.5v to 5v. Signed-off-by: Jon Trulson <jtrulson@ics.com>
22 lines
436 B
OpenEdge ABL
22 lines
436 B
OpenEdge ABL
%module javaupm_sht1x
|
|
%include "../upm.i"
|
|
%include "std_string.i"
|
|
%include "stdint.i"
|
|
%include "typemaps.i"
|
|
|
|
%include "sht1x.hpp"
|
|
%{
|
|
#include "sht1x.hpp"
|
|
%}
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_sht1x");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|