firmware wip - prepare to return raw aout value of soilmoisture and water level
This commit is contained in:
parent
01c410c31d
commit
71b846c5b0
1 changed files with 3 additions and 4 deletions
|
@ -32,7 +32,7 @@ unsigned int readI2CRegister16bit(int addr, int reg) {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int getWaterlevel() {
|
int getWaterlevel(bool returnRAW = false) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* waterlevelRAW
|
* waterlevelRAW
|
||||||
|
@ -107,11 +107,10 @@ float getTemperature(byte tempSensor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
float getHumidity() {
|
float getHumidity() {
|
||||||
float humidity = dht.readHumidity();
|
return dht.readHumidity();
|
||||||
return humidity;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int getSoilmoisture(byte moistureSensor) {
|
int getSoilmoisture(byte moistureSensor, bool returnRAW = false) {
|
||||||
/*
|
/*
|
||||||
* moistureSensor
|
* moistureSensor
|
||||||
* ==============
|
* ==============
|
||||||
|
|
Loading…
Reference in a new issue