driver property name change and fahrenheit conversion - tested on HW
This commit is contained in:
parent
53907e68f7
commit
3b48f13f8e
1 changed files with 5 additions and 1 deletions
|
|
@ -49,7 +49,11 @@ def colorWipe(color):
|
||||||
strip[j] = (color)
|
strip[j] = (color)
|
||||||
|
|
||||||
while True:
|
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:
|
if temp < cold_temp:
|
||||||
temp = cold_temp
|
temp = cold_temp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue