0

Reset procedure for OLED
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Reset procedure for OLED

by SC_orched on Mon Jan 30, 2017 3:50 pm

I Have a monochrome 1.3" 128x64 OLED display, Prod id. # 938 that I have used with an Arduino Uno with no problems.

However, when I try to use it with a ESP8266 (node-mcu- amika v1.0) it will not display anything and prevents code from uploading. If I disconnect power (5 Vdc) at the OLED code will upload properly. As quickly as possible after programming is complete if I re-power the OLED it works as expected. But if I don't make the connection fast enough it will not light up.

After power cycle I must disconnect the power to the OLED, press the reset button on the ESP8266 and very quickly re-power the OLED as I release the reset button.

There is obviously a reset / initialization procedure for this display that I have not found documentation for yet. Not real sharp on C++ so I haven't tried to figure anything out from the *.cpp or *.h files yet either.

If anyone has any thoughts or experience with this would appreciate your input..

Thanks

SC_orched
 
Posts: 2
Joined: Thu Jan 21, 2016 12:51 pm

Re: Reset procedure for OLED

by adafruit_support_rick on Wed Feb 01, 2017 7:21 am

Do you have the reset pin connected? Which ESP8266 pin is it connected to?

Have you tried putting a delay before the call to display begin?

adafruit_support_rick
 
Posts: 35056
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Reset procedure for OLED

by SC_orched on Wed Feb 01, 2017 9:57 pm

Rick,

Thanks for the response

Yes, I have added a delay before - display.init() , it gives me a little more time to re-power the display and have it work.

Looked in ' OLEDDisplay.cpp ' and there is an initialization function. Seems to toggle the display on / off, clear the buffer, does something with the charge pump.

And I am using the reset pin on the display, connected to D1 / GPIO5.

Thanks again...

SC_orched
 
Posts: 2
Joined: Thu Jan 21, 2016 12:51 pm

Re: Reset procedure for OLED

by adafruit2 on Thu Feb 02, 2017 7:25 pm

yah make sure you toggle the reset pin low and then high to really reset the OLED. you can also try SPI mode? but we know the OLED code works, in general, with ESP because thats what the featherwing uses! (the featherwing has an auto-reset circuit so you dont need to toggle the pin, tho)

adafruit2
Site Admin
 
Posts: 16433
Joined: Fri Mar 11, 2005 7:36 pm

Re: Reset procedure for OLED

by powersoft on Sun Mar 11, 2018 4:15 pm

I have connected the oled 1.3 to an esp32 over i2c.
After repowering the display is showing dots. Don't have connect the reset to any pin.
My question is on which pin of the esp32 should connect the reset pin, and
what to do with :

#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);

After paying with the rest I have result and the demo is working, so I know
that my display works fine.
Thanks for any help.

Regard

powersoft
 
Posts: 27
Joined: Tue Aug 30, 2011 1:01 am

Re: Reset procedure for OLED

by adafruit_support_rick on Mon Mar 12, 2018 9:35 am

You can connect reset to any free digital IO pin. Change this line to specify whichever pin you have selected:
Code: Select all | TOGGLE FULL SIZE
#define OLED_RESET 4

adafruit_support_rick
 
Posts: 35056
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.