From 3b48f13f8edae9032a876b3269947c36cec231a0 Mon Sep 17 00:00:00 2001 From: Mikey Sklar Date: Thu, 28 Jun 2018 15:13:50 -0600 Subject: [PATCH] driver property name change and fahrenheit conversion - tested on HW --- DIY_Thermal_Light_Painting/DIY_Thermal_Light_Painting.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DIY_Thermal_Light_Painting/DIY_Thermal_Light_Painting.py b/DIY_Thermal_Light_Painting/DIY_Thermal_Light_Painting.py index 9187bab1..37e1410c 100644 --- a/DIY_Thermal_Light_Painting/DIY_Thermal_Light_Painting.py +++ b/DIY_Thermal_Light_Painting/DIY_Thermal_Light_Painting.py @@ -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