diff --git a/Ohmpy.py b/Ohmpy.py index 63918284151682d829c49194c7110d33f2894205..825781bab338ab71cc1da43210ebc45373a70521 100644 --- a/Ohmpy.py +++ b/Ohmpy.py @@ -107,9 +107,9 @@ def run_measurement(nb_stack, injection_deltat, Rref, coefp0, coefp1, coefp2, co # resistance measurement for n in range(0,3+2*nb_stack-1) : if (n % 2) == 0: - GPIO.output(7, GPIO.HIGH) # polarité n°1 + GPIO.output(7, GPIO.HIGH) # polarity n°1 else: - GPIO.output(7, GPIO.LOW) # polarité n°1 également ? + GPIO.output(7, GPIO.LOW) # polarity n°2 GPIO.output(8, GPIO.HIGH) # current injection time.sleep(injection_deltat) # delay depending on current injection duration Ia1 = AnalogIn(ads,ADS.P0).voltage * coefp0 # reading current value on ADS channel A0