Update hot.py

This commit is contained in:
Mike Barela 2018-09-11 21:30:39 -04:00 committed by GitHub
parent 657b474506
commit eec48dd7c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,6 @@ while True: # Loop Forever
voltage = TMP36.value * 3.3 / 65536.0 # Read temp sensor, get voltage voltage = TMP36.value * 3.3 / 65536.0 # Read temp sensor, get voltage
tempC = (voltage - 0.5) * 100.0 # Calculate Celsius tempC = (voltage - 0.5) * 100.0 # Calculate Celsius
tempF = (tempC * 9.0 / 5.0) + 32.0 # Calculate Fahrenheit tempF = (tempC * 9.0 / 5.0) + 32.0 # Calculate Fahrenheit
tempF = (tempC * 9.0 / 5.0) + 32.0 # Calculate Fahrenheit
heat_value = POT.value / 65536.0 # Value (0.0 to 1.0) to drive pad heat_value = POT.value / 65536.0 # Value (0.0 to 1.0) to drive pad