upm_apds9002.APDS9002 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of upm_apds9002 Show documentation
Show all versions of upm_apds9002 Show documentation
Ambient Light Photo Sensor
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.6
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package upm_apds9002;
public class APDS9002 {
private long swigCPtr;
protected boolean swigCMemOwn;
protected APDS9002(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(APDS9002 obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
javaupm_apds9002JNI.delete_APDS9002(swigCPtr);
}
swigCPtr = 0;
}
}
public APDS9002(int pin) {
this(javaupm_apds9002JNI.new_APDS9002(pin), true);
}
public int value() {
return javaupm_apds9002JNI.APDS9002_value(swigCPtr, this);
}
}