driver property name change and fahrenheit conversion - tested on HW

This commit is contained in:
Mikey Sklar 2018-06-28 15:13:50 -06:00
parent 53907e68f7
commit 3b48f13f8e

View file

@ -49,7 +49,11 @@ def colorWipe(color):
strip[j] = (color)
while True:
temp = mlx.object_temp_f
# get object temperature in celsius
temp = mlx.object_temperature
# convert object temperature to fahrenheit
temp = (temp * 9/5) + 32
if temp < cold_temp:
temp = cold_temp