Hey, this is the first time I have ever tried to use an OLED and I can't seem to get it to work, or even diagnose the issue...!
The issue is the OLED displays a random array of blue and black pixels and only animation in a black bar at the bottom of the screen (as shown in the picture).
I am using the adafruit demo code example from the ssd1306 library called - ssd1306_128x64_spi, the only alteration I have made to it is the pins i'm using. It uploads just fine.
Anyone happen to know what the issue is? I am happy to include more info if needed.
It looks like you have a 1.3" SH1106 display and not a 0.96" SSD1306 display.
It is always wise to post a link to the actual item that you have bought. e.g. Ebay sale page.
U8g2lib supports SH1106 and can be installed via the IDE Library Manager.
David.
Sorry! I didn't purchase this myself (the school did) it says "Duinotech 1.3' OLED v2.0" with 7 pins (so I assume spi from what I have learnt) on the back
First off. It is a good idea (tm) to plug the male OLED pins into the breadboard. And place the coloured jumper wires so that we can see them clearly.
Obviously the wires must be ok. Else you would not see anything at all.
Secondly, always copy-paste code directly to your message. Do not show screenshots for code.
Did your teacher tell you to use Adafruit_SSD1306 library?
It is possible that you have a 1.3" SSD1306. I have never seen one.
SH1106 is a different make of OLED controller. That is why you need a different library.
If you are unsure whether it is SH1106 or SSD1306, you could post a photo of the pcb side of the OLED.
Or simply try the U8g2lib library examples with each constructor. See which works best.
David.
My apologies! I am super new to this! Thanks so much for your help
Here is the back of the OLED. I can't find any documentation on it to help my investigation.
I Googled "Duinotech OLED" and found this item
If you download the Manual it shows U8glib library with SH1106 constructor.
U8glib is obsolete. It has been replaced with U8g2lib library.
David.