From 2e8b6cf2ab01d6012a0b93c4f11a5bdfbe1048a1 Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Sat, 8 Jan 2022 14:21:05 -0800 Subject: [PATCH] Comment out distance sensor initially --- src/omv/boards/OPENMVPT/main_py.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/omv/boards/OPENMVPT/main_py.h b/src/omv/boards/OPENMVPT/main_py.h index 0fe9407f8..f1635dca1 100644 --- a/src/omv/boards/OPENMVPT/main_py.h +++ b/src/omv/boards/OPENMVPT/main_py.h @@ -10,7 +10,7 @@ static const char fresh_main_py[] = "def main():\n" "\n" " i2c = I2C(2)\n" -" distance = VL53L1X(i2c)\n" +" # distance = VL53L1X(i2c)\n" "\n" " sensor.reset()\n" " sensor.set_pixformat(sensor.RGB565)\n" @@ -74,7 +74,7 @@ static const char fresh_main_py[] = " img.draw_string(4, 0, 'Lepton Temp: %0.2f C' % ta, color = (255, 255, 255), mono_space = False, scale = 2)\n" " img.draw_string(4, 18, 'Min Temp: %0.2f C' % to_min, color = (255, 255, 255), mono_space = False, scale = 2)\n" " img.draw_string(4, 36, 'Max Temp: %0.2f C' % to_max, color = (255, 255, 255), mono_space = False, scale = 2)\n" -" img.draw_string(4, 54, 'Distance: %d mm' % distance.read(), color = (255, 255, 255), mono_space = False, scale = 2)\n" +" # img.draw_string(4, 54, 'Distance: %d mm' % distance.read(), color = (255, 255, 255), mono_space = False, scale = 2)\n" "\n" " lcd.display(img, x_size = lcd.width(), hint = image.BILINEAR)\n" "\n"