mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Comment out distance sensor initially
This commit is contained in:
parent
b679b1ead2
commit
2e8b6cf2ab
@ -10,7 +10,7 @@ static const char fresh_main_py[] =
|
|||||||
"def main():\n"
|
"def main():\n"
|
||||||
"\n"
|
"\n"
|
||||||
" i2c = I2C(2)\n"
|
" i2c = I2C(2)\n"
|
||||||
" distance = VL53L1X(i2c)\n"
|
" # distance = VL53L1X(i2c)\n"
|
||||||
"\n"
|
"\n"
|
||||||
" sensor.reset()\n"
|
" sensor.reset()\n"
|
||||||
" sensor.set_pixformat(sensor.RGB565)\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, 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, 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, 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"
|
"\n"
|
||||||
" lcd.display(img, x_size = lcd.width(), hint = image.BILINEAR)\n"
|
" lcd.display(img, x_size = lcd.width(), hint = image.BILINEAR)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user