Why Isn't My OLED Screen Updating with Pressure Readings on AVR128DA48?
Hey guys, I'm trying to display real-time pressure readings on an OLED screen using I2C in my AVR128DA48-based pressure monitoring project. However, the OLED screen does not update as expected. the I2C wiring and connection to the OLED screen are quite cool, and I also ensured that the pressure readings were valid and correctly formatted. Yet, I'm still encountering the OLED screen failing to display any pressure readings.
What might be causing this issue, and how can I ensure that the OLED screen updates correctly with real-time pressure values?
this is my code instructions:
2 Replies
Hi @Dtynin How are you? what you can try is to make sure both the OLED display and BMP280 sensor are properly set up by checking that
device_get_binding
for each device doesn’t return NULL
. If it does, print an error message and stop the program. Also, remember to initialize the framebuffer with cfb_framebuffer_init()
before printing anything to the OLED to ensure it’s good to go. Lastly, to keep the display clear and avoid any text overlap, use cfb_framebuffer_clear(oled_dev, true);
before each update.Thanks @Nayel for the prompt response...I would try them out