You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a long time ago,
it's only useful to read voltage value, you can call it in your code to have raw value converted to real voltage.
you call this with your vref, and it translate to real voltage.
Factor is you had difference Betwwen read voltage and measured voltage, you can add this as factor.
If you don't read a voltage value, you do'nt need it.
HI. I have a question.
where do you use\call function. you dont use it anywhere. please help me.
def readVoltage(self,channel,vref,factor=1) :
return float(self.readADResultRaw(channel)) / 65536.0 * vref * factor
The text was updated successfully, but these errors were encountered: