Hi,
I'm using an SSD1306 OLED 128x32 SPI. http://www.adafruit.com/products/661
I can't figure out why it keeps shutting off after about 2-10 minutes. I don't think the shutoff time is exactly consistent, but it's generally off after 3 minutes. Is there a sleep function that I can turn off?
I have tried to isolate if there is a conflict with something in my code, such as another device library, but I have my sketch really simple at this point: it's just the OLED and an UNO, and the OLED still goes off.
Help!
SSD1306 OLED Screen turns off or goes to sleep?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 12
- Joined: Fri Mar 01, 2013 3:47 pm
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: SSD1306 OLED Screen turns off or goes to sleep?
What turns it back on? Resetting the Uno?
-
- Posts: 12
- Joined: Fri Mar 01, 2013 3:47 pm
Re: SSD1306 OLED Screen turns off or goes to sleep?
Correct, pressing reset turns the screen back on.
-
- Posts: 12
- Joined: Fri Mar 01, 2013 3:47 pm
Re: SSD1306 OLED Screen turns off or goes to sleep?
I divided up my code into functions and now the screen is staying on. I must have had some overlapping code that was causing the screen to shut off. Thanks. Rule of thumb: when you're sketch gets complex (about 10 different routines going on) it's a good idea to divide up the code into functions.
Please be positive and constructive with your questions and comments.