parent
34403f2c79
commit
313a7bb081
2
main.py
2
main.py
|
@ -77,3 +77,5 @@ def get_moisture():
|
||||||
|
|
||||||
return adc.readADCSingleEnded(0, gain, sps) / 1000 + adc.readADCSingleEnded(1, gain, sps) / 1000 + adc.readADCSingleEnded(2, gain, sps) / 1000 + adc.readADCSingleEnded(3, gain, sps) / 1000
|
return adc.readADCSingleEnded(0, gain, sps) / 1000 + adc.readADCSingleEnded(1, gain, sps) / 1000 + adc.readADCSingleEnded(2, gain, sps) / 1000 + adc.readADCSingleEnded(3, gain, sps) / 1000
|
||||||
|
|
||||||
|
print(get_moisture())
|
||||||
|
print(get_water_level())
|
Loading…
Reference in New Issue