Adafruit is open and shipping! Let's build back better, together!
0

SSD1306 on Arduino
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

SSD1306 on Arduino

by kenidowa on Tue Jan 12, 2021 7:54 pm

I have a new from adafruit SSD1306 used over QT Stemma i2c. I am using a QT_PY SAMD21 board to talk with this SSD1306 OLED display. When I use CircuitPython it seems to work fine with the demo program. But since the QT_PY has limited memory I want to use it with Arduino but I am having a problem with it displaying over the entire display. In the vertical direction it is only using less than 1/4 of the display. (so it is just displaying a horizontal band across the top of the display but stops at less than 1/4 of the way down) I can see in that visible display section the program is executing correctly but in the lower secton the pixels are randomly and statically on or off. The display is a 128x64 display and I have the height and width set appropriately in the program. Anybody tried using these displays with Arduino?? I am using the Adafruit Libraries and example program "ssd1306_128x64_i2c".

thx,
ken

kenidowa
 
Posts: 38
Joined: Wed Nov 07, 2012 7:50 pm

Re: SSD1306 on Arduino

by adafruit_support_carter on Tue Jan 12, 2021 9:38 pm

Just to make sure what all you have. It's one of these:
https://www.adafruit.com/product/326
with one of these:
https://www.adafruit.com/product/4600
running this sketch?
https://github.com/adafruit/Adafruit_SS ... 64_i2c.ino

adafruit_support_carter
 
Posts: 18117
Joined: Tue Nov 29, 2016 2:45 pm

Re: SSD1306 on Arduino

by kenidowa on Tue Jan 12, 2021 10:22 pm


kenidowa
 
Posts: 38
Joined: Wed Nov 07, 2012 7:50 pm

Re: SSD1306 on Arduino

by adafruit_support_carter on Wed Jan 13, 2021 12:43 pm

Thanks. I just tested that combo here and it worked OK. The only change to the sketch was to the reset pin:
Code: Select all | TOGGLE FULL SIZE
#define OLED_RESET     -1 // Reset pin # (or -1 if sharing Arduino reset pin)


Make sure you are using the latest version of all libraries and try again.

adafruit_support_carter
 
Posts: 18117
Joined: Tue Nov 29, 2016 2:45 pm

Re: SSD1306 on Arduino

by kenidowa on Wed Jan 13, 2021 4:11 pm

Hey thanks,
Updated libraries and solved the problem. Since I had newly installed Arduino on my computer I thought I had the latest libs installed.
Thanks again no more hair loss :)

kenidowa
 
Posts: 38
Joined: Wed Nov 07, 2012 7:50 pm

Re: SSD1306 on Arduino

by adafruit_support_carter on Wed Jan 13, 2021 5:13 pm

Cool, glad it was that simple. Thanks for letting us know. Have fun!

adafruit_support_carter
 
Posts: 18117
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.