[Solved] OLED Displays
Sorry if this exists elsewhere but I did a search for OLED and didn't find anything relevant.
do not work nor do the Adafruit ssd1306 examples. I have modified the examples to use my 128 x 64 screen size and correct i2c address. In all examples, I get a very narrow area running the width of the screen by maybe 8 pixels high, where something seems to be happening and the rest of the screen is mainly black with scattered white dots.
I have managed to get this display to work very well with several ESP32 boards using the <oled.h> library (which does not compile for the NANO) so I know the display is good. What I want to do now is to use the display with an Arduino Nano project I am working on but no joy.
Is there perhaps, something in the Adafruit_SSD1306.cpp file I need to change as apposed to just the header file? I have looked at the .cpp file but honestly can't make heads or tails of it.
I should also mention that I've tried the display with 3 different Nanos and an UNO to eliminate the controller but no joy on any of them. I have a smaller .9 inch OLED display which works but is only 32 lines (pixels?) as apposed to the 64 on this display.
I am a noob and have likely overlooked something but just can't rap my seniors head around it.
Thanks in advance for any suggestions.
Well, after many days of pulling out my hair I managed to discover a different library to use with my 1.3 inch display and the Nano. I have downloaded U8G2 which so far allows me to display 6 rows and 21 columns of text at the libraries default settings. One interesting problem with this library is text has to start not at the 1st pixel position (0,10) but at the 3rd pixel (2,10) as seen here:
Using 0 (zero) or 1 leaves the first two columns of pixels off of the H. Also running down the entire right side of the screen is a two pixel wide column of solid white with some black pixels intermixed. Bought a second display through amazon.ca and get the same results.
At least I am having some sort of success.
Has anyone else had trouble with these 1.3" OLED displays?
Thanks for reading this,
I can't believe my luck. Took another look at the U8G2 library and discovered the following line:
U8X8_SH1106_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE);
My little 1.3" OLED display is now fully functional! It now used the entire screen size of 128x64 and is extremely fast compared to the line (constructor??) of:
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE);
Hope this will help anyone else who chooses to use this type of display.