adafruit/Adafruit_CircuitPython_SSD1306

Usage Example code requires two runs on Pico using Thonny before screen actually updates

roryjamesallen opened this issue · 2 comments

When running the example code (or seemingly any code using the module) on a Raspberry Pi Pico using Thonny IDE the code must be run twice before any changes to the display made in code are visible on screen.
It consistently is exactly 2 runs before changes are visible, and the changes are always visible after 2.

I have tried implementing a delay both before the refresh, and before a second code refresh, and neither fix the issue.

image

Does this occur when you use Mu or another editor? Thonny loads code in a unique way that may be causing this.

That fixed it, thank you!