parameters: (self, t)
return_statement: return round(v / self.vadc * 1024)
docstring: Convert a temperature into a ADC value
docstring_summary: Convert a temperature into a ADC value
docstring_tokens: Convert a temperature into a ADC value
function: def setting(self, t):
          "Convert a temperature into a ADC value"
          r = self.r0 * exp(self.beta * (1 / (t + 273.15) - 1 / self.t0)) # resistance of the thermistor
          v = self.vs * r / (self.rs + r)     # the voltage at the potential divider
          return round(v / self.vadc * 1024)
function_tokens: def setting ( self , t ) : r = self . r0 * exp ( self . beta * ( 1 / ( t + 273.15 ) - 1 / self . t0 ) ) # resistance of the thermistor v = self . vs * r / ( self . rs + r ) # the voltage at the potential divider return round ( v / self . vadc * 1024 )