# Bottom half of PiicoDev OLED screen random pixels

**URL:** <https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088>\
**Category:** Raspberry Pi\
**Created:** [15 May 2023 03:47 UTC](https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088 "2023-05-15T03:47:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Franco243461](https://avatars.discourse-cdn.com/v4/letter/f/d07c76/32.png) [@Franco243461](https://forum.core-electronics.com.au/u/Franco243461)\
**Post date:** [15 May 2023 03:47 UTC](https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088/1 "2023-05-15T03:47:55Z")

</div>

Whenever I run code with my PiicoDev OLED module the bottom part of the screen becomes filled with random pixels and overlaps whatever I’m trying to print to it. The code I run on it (Im ran the OLED sample code in the picture) will also move across the screen, any help is appreciated!

 ![20230514_204118](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/8/89e7524ef3e953d811da336feb654c444971be36.jpeg)

---

<div class="post-metadata">

**Author:** ![Blayden](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/blayden/32/7535_2.png) [@Blayden](https://forum.core-electronics.com.au/u/Blayden)\
**Post date:** [15 May 2023 04:29 UTC](https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088/2 "2023-05-15T04:29:39Z")

</div>

Hey Franco,  
Welcome to the forums!

There are a couple of things that can cause that issue, I would recommend checking the connections of the cable as a first step. Has it worked fine previously or has this been an issue from the beginning?

Cheers,  
Blayden

---

<div class="post-metadata">

**Author:** ![Franco243461](https://avatars.discourse-cdn.com/v4/letter/f/d07c76/32.png) [@Franco243461](https://forum.core-electronics.com.au/u/Franco243461)\
**Post date:** [15 May 2023 04:42 UTC](https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088/3 "2023-05-15T04:42:13Z")

</div>

Hi Blayden,  
This has been an issue from the beginning, I’ve also checked the cable connection and tried other cables but no luck

---

<div class="post-metadata">

**Author:** ![Blayden](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/blayden/32/7535_2.png) [@Blayden](https://forum.core-electronics.com.au/u/Blayden)\
**Post date:** [15 May 2023 04:45 UTC](https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088/4 "2023-05-15T04:45:14Z")

</div>

Hey Franco,

If you could send us an email about this, we can get it fixed up for you, if you have gone through those steps, its likely a hardware issue or its been damaged somehow (as much as we ship our products as protected as possible we sometimes have issues with damaged items if they are handled extra rough).

Send that through to us via email and we can get it fixed up for you.

Cheers,  
Blayden

---

<div class="post-metadata">

**Author:** ![Franco243461](https://avatars.discourse-cdn.com/v4/letter/f/d07c76/32.png) [@Franco243461](https://forum.core-electronics.com.au/u/Franco243461)\
**Post date:** [15 May 2023 04:49 UTC](https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088/5 "2023-05-15T04:49:11Z")

</div>

Thanks Blayden, will do!  
Cheers

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [15 May 2023 23:12 UTC](https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088/6 "2023-05-15T23:12:04Z")

</div>

Hey, @Franco243461 - I observed the same thing last Friday with my OLED.

The first stable release of MicroPython (v1.20.0) for the Pico W came out a little while ago. One of the changes was to add a timeout to I2C transactions which broke OLED operation - the default value appears too low for the large OLED-update transaction.

We updated `PiicoDev_Unified.py` the same day ([commit details](https://github.com/CoreElectronics/CE-PiicoDev-Unified/commit/c4c9208e3464be4858cf8f4c9f0fc547fbdc0ec4)) to address this - I raised the bus frequency to 400kHz. I’m curious to see whether the OLED behaves if you re-download `PiicoDev_Unified.py` from the [OLED Tutorial](https://core-electronics.com.au/guides/raspberry-pi-pico/piicodev-oled-ssd1306-raspberry-pi-pico-guide/).

---

<div class="post-metadata">

**Author:** ![Peter45110](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@Peter45110](https://forum.core-electronics.com.au/u/Peter45110)\
**Post date:** [21 May 2023 01:07 UTC](https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088/7 "2023-05-21T01:07:00Z")

</div>

Good morning. I found a similar problem with the OLED connected to a Pico. The python code reported unable to connect to the I2C bus. i removed all other connections (pins 15 to 10), no change. I replaced the cable to the OLED, no change. I tried the second connector on the OLED, no change. I tried a second OLED, no change. I tried the first OLED on another Pico, it worked. I tried a second OLED on the first Pico, did not work, same issue. This all pointed to the first Pico - I swapped it for the second Pico, now works. So issue appears to be with first Pico. This pico was programmed to work with two rotary encoders (same as in CE tutorial) using pins 15 through 10. I haven’t pursued further (eg re-setting the first pico) as I needed to get back to my original goal. However, hope helps.

---

<div class="post-metadata">

**Author:** ![Mark240472](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/mark240472/32/8440_2.png) [@Mark240472](https://forum.core-electronics.com.au/u/Mark240472)\
**Post date:** [5 June 2023 22:45 UTC](https://forum.core-electronics.com.au/t/bottom-half-of-piicodev-oled-screen-random-pixels/17088/8 "2023-06-05T22:45:34Z")

</div>

I noticed this issue with my display when I upgraded to v1.20.0 on the Pico W.  
I can confirm your change to `PiicoDev_Unified.py` fixes the issue.

Thanks Michael!
