diff --git a/test.py b/test.py index be339ef..e331f9a 100644 --- a/test.py +++ b/test.py @@ -17,9 +17,7 @@ def get_moisture(): sps = 250 adc = SDL_Adafruit_ADS1x15.ADS1x15(ic=ADS1115) - voltsCh = 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 voltsCh + 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 while True: print(get_moisture()) \ No newline at end of file