Last time I tried was a while before you added SPI support, when we were talking about how you need to short two pins together to make them have a prayer of working on I2C, and that made it stop giving I2C timeouts, but the screen remained blank. I haven't had a chance to come back to it since then.

Thx ;)
Yes it is one with yellow band on top. So everything within the first 15 pixels is yellow instead of blue.
But I'm not really happy about this cheap OLED displays, because they did not have any CS signals. Means you can not add multiple displays on one SPI bus :/
So I already ordered some with CS for 3.30 USD on aliexpress ;)

@Gordon I had these random pixels only with the arduino library connected on my Teensy3.1
It seems, that it depends on the power supply.

My example just uses the VDD/GND of pico or the pins A5/A7 setting to high/low to give 3.3V
both is working great without any random pixels.

but the screen remained blank. I haven't had a chance to come back to it since then.

Ahh, give it a go now - I changed the initialisation code - there's a lot of extra stuff that could be set up, and some things to do with the charge pump for displays that didn't have a built in power supply. The Arduino library had what seemed to be some much more general purpose initialisation code.

@JackJamesHoward it's the SSD1306 - see here. There are a few links on that page to EmbeddedAdventures and AdaFruit, but you can find them other places too. You want the 128x64 pixel variant.

@Gordon Do you know, what happend on startup. I've noticed that the display is black on startup. I have to connect it by the WebIDE to see something on the display.
I upload my code and send "save()" everything was flashed and onInit() was called. I disconnect the Pico and reconnect > display black, but internal code is ok (button watch is working)...
After connect the Pico by WebIDE > display shows content

Is there something wrong with my initialisation of the SPI?source code

No, it's an issue with the current version of the firmware. If you power it from a USB power supply then it should work first time? It's fixed in the USB HID firmware, but there's still a bit of work to do before I do a full release of that.

The issue is that when the Pico is connected to a PC, there is a USB connection made, but the PC is not reading any information the Pico transmits - so the pico just 'stalls', waiting for the characters to be read.

If you power it from a USB power supply then it should work first time?

Yes, if I connected to USB Powerbank it lights up, there are still some strange issues - could be something with my code - I have to check again.
But if I connect it to USB port of my Mac, nothing happens...
Only after connect USB device by WebIDE.

Yeah... If you get the firmware from here it shouldn't do that unless you print a lot of text - those changes will work their way to a release at some point in the future, but those were big changes so it'll take a while before I'm happy :)

Post a reply

Bold

Italics

Link

Image

List

Quote

code

Preview

Formatting Help

Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.

Tips:

Create headers by underlining text with ==== or ----

To *italicise* text put one asterisk each side of the word

To **bold** text put two asterisks each side of the word

Embed images by entering: ![](https://www.google.co.uk/images/srpr/logo4w.png)That's the hard one: exclamation, square brackets and then the URL to the image in brackets.

* Create lists by starting lines with asterisks

1. Create numbered lists by starting lines with a number and a dot

> Quote text by starting lines with >

Mention another user by @username

For syntax highlighting, surround the code block with three backticks:

```
Your code goes here
```
Just like Github, a blank line must precede a code block.

If you upload more than 5 files we will display all attachments as thumbnails.