Skip to content

Display garbage on OLED SSD1306 screen when using core version 1.5.2 for Arduino R4 Nano #520

@vbturri

Description

@vbturri

Here is the situation. I have been working on a project with a Arduino R4 Nano and among the components, a Oled SSD1306 128x64 screen on the i2c bus. Code is working fine, display data is fine. I am using Visual Code with Platform.io.

Then I moved back to Arduino IDE to make a guide for installing the IDE, libraries, board manager, code folder, compile and upload. I recorded all thoses steps without any problems. But then, when I start using the Arduino for its purpose, the screen shows garbage.

I was using Adafruit SSD1306 libraries 2.5.16 in Arduino IDE, while using 2.5.15 in Visual Code. Move back to 2.5.15, but still garbage on the screen. Essentially when compiled in Visual Code, the display is ok. When compiled in Arduino IDE, the display has garbage.

In terms of hardware and connections, the arduino is welded on a custom pcb board with other connectors and oki buck converter. So it is pretty much stable from test to test.

With the help of AI, in the Visual Code, comparing compiling log, he discovered that the version of the board manager on Visual Code Platform.IO, was version 1.5.1, meanwhile in Arduino IDE, it was the last version 1.5.2. I uninstalled v1.5.2 and installed v1.5.1. Recompiled and uploaded. Now the display is working fine.

So the core version 1.5.2 for the R4 Nano has introduced a bug versus the Adafruit library for the SSD1306. Another detail, I am using this OLED screen purchased from Amazon: https://www.amazon.ca/dp/B076PNP2VD?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_1

The ssd1306 library is from Adafruit.

Additional context

Additional reports

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions