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
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 error
Error: Display not updating
i 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:Jump to 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...3 Replies
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 italso make sure you are using the latest version of the library, if it doesnt correct the error check that your power supply is stable
thanks so much @RED HAT just did this and it worked its funny how a little thing as text appearnce can impact a project heavily