How to Display Warnings on OLED Based on Object Distance Using BeagleBone Black?
Hey guys, still based on my project parking assistance system using a
i have verified timing of the
here's my code
BeagleBone Black running Embedded Linux, VL53L0X time of flight distance sensor to detect the distance to nearby objects and a 0.96-inch OLED display to show the distance and warning messages. how can I display warning messages on the OLED screen when the detected object is too close or too far. i am getting the errorError: Display not updatingi have verified timing of the
time.sleep() function, ensured proper buffer clearing with disp.clear() but still getting same error.here's my code
Solution
Hey @Boss lady It looks like you’ve got most things set up correctly. The
issue with the display not updating is due to how the text is being rendered on the OLED screen, you could try making sure that each frame is being drawn correctly before it’s sent to the display. The Adafruit_SSD1306 library has some quirks with the text() method, and sometimes it doesn't update the display as expected. So try modifying your code to use the Image and ImageDraw modules to draw the text on a buffer before displaying it