|
| simpleRainSensor () |
|
| simpleRainSensor (uint8_t _analogPin, uint8_t _digitalPin) |
|
bool | isRaining () |
| Get the reading of the sensor if it's raining or not according to the set threshold.
|
|
| simpleSensor () |
| easyC constructor for the Simple Sensors.
|
|
| simpleSensor (uint8_t _analogPin, uint8_t _digitalPin) |
| Native constructor for the Simple Sensors.
|
|
uint16_t | getRawReading () |
| Get the raw reading of the sensor.
|
|
float | getResistance () |
| Calculate resistance which the sensor is measuring.
|
|
float | getValue () |
| Get the value of the sensor as a percentage.
|
|
void | setRawThreshold (uint16_t _thresh) |
| Set the raw value of the threshold. Only for easyC.
|
|
uint16_t | getRawThreshold () |
| Get the raw value of the threshold.
|
|
void | setThreshold (float _thresh) |
| Set the threshold as a percentage. Only for easyC.
|
|
float | getThreshold () |
| Get the percentage value of the threshold, only for easyC.
|
|
void | invertLED (bool _invert) |
| Invert the LED on the breakout board.
|
|
void | calibrate (float _highPercentage) |
| Calibrate the high percentage value of the reading.
|
|
uint8_t | getDigitalPin () |
| Get the location of D0 on the native board.
|
|
| EasyC () |
| Main constructor for easyC version.
|
|
void | begin () |
| Initializes sensors on native or easyC on default address.
|
|
void | begin (uint8_t _address) |
| Initializes sensors on supplied i2c address.
|
|
int | sendAddress (char regAddr) |
| Private function to send a single byte to sensor.
|
|
int | readData (char a[], int n) |
| Private function to read n bytes over i2c.
|
|
int | readRegister (char regAddr, char a[], size_t n) |
| Private function to send over i2c and then read n bytes.
|
|
int | sendData (const uint8_t *a, int n) |
| Private function to write n bytes over i2c.
|
|
This class inherits the main simpleSensor class