[API] Driver Sensor - Thomas-Broussard/hackberry-enableFrance GitHub Wiki

class Hackberry_sensor

Summary

Members Descriptions
public Hackberry_sensor() Constructor
public void init(unsigned char pin1,unsigned char pin2,unsigned char pin3)
public int read() read the value of the sensor
public int readAverage() Perform a sensor reading by averaging the result on 16 consecutive points
public int readRaw()
public int readRawAverage()
public void calibrate(int sensorMin,int sensorMax)
public void setSensorType(unsigned char sensorType)

Members

public Hackberry_sensor()

Constructor

public void init(unsigned char pin1,unsigned char pin2,unsigned char pin3)

public int read()

read the value of the sensor

Returns

sensor value read

public int readAverage()

Perform a sensor reading by averaging the result on 16 consecutive points

Returns

average value of the sensor on 16 consecutive acquisitions

public int readRaw()

public int readRawAverage()

public void calibrate(int sensorMin,int sensorMax)

public void setSensorType(unsigned char sensorType)