Enthernet Code
DIIDevHeads IoT Integration Server
•Created by Boss lady on 8/13/2024 in #firmware-and-baremetal
Continuous Distance Measurement and OLED Update on BeagleBone Black with VL53L0X
Hello,Your setup is okay, but the
ValueError: I/O operation on closed file
error seems to points to an issue with how the OLED
display or I2C
bus is being managed. Make sure the OLED
is properly initialized and stays active. You might also want to wrap your loop
in a try-except
block to catch errors
and prevent the display from closing unexpectedly. re-check your wiring as well. Here's a quick fix:
@Boss lady5 replies