Skip to content

Commit

Permalink
removed numpy dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vzaliva committed Mar 13, 2013
1 parent d9f163d commit a9f5a61
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tmp36.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@
"""

import numpy

V1 = 500.0
K = 10.0

def get_t_from_adc(Vmv):
"""
returns temperature C from ADC value.
code Vout
------------
0 0
1023 Vref
returns temperature in C from ADC value.
"""
return (Vmv - V1) / K

0 comments on commit a9f5a61

Please sign in to comment.