Trouble with Serial OLED Screen 0.96"

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mindflayer14
 
Posts: 5
Joined: Sat May 20, 2017 6:15 pm

Trouble with Serial OLED Screen 0.96"

Post by mindflayer14 »

Hi,
I got a Photon Maker Kit a little while ago and wanted to use the OLED screen in there, so I decided to start with a simple splashscreen. My code compiles and flashes to the Photon just fine, but the OLED stays blank. Here's my code:

Code: Select all

#include <Adafruit_SSD1306.h>

#define OLED_DC A1
#define OLED_CS A2
#define OLED_RESET A0

static Adafruit_SSD1306 display(OLED_DC, OLED_RESET, OLED_CS);
void display_init()
{
display.begin(SSD1306_SWITCHCAPVCC);
display.display();
delay(2000);
display.clearDisplay();
display.display();
}
void setup() {
    
}
void loop() {

}
As you can see, I'm using the Adafruit SSD1306 library. Any help?

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Trouble with Serial OLED Screen 0.96"

Post by Franklin97355 »

How do you have them connected, what are you getting when you run this program, and how are you powering all this?

User avatar
mindflayer14
 
Posts: 5
Joined: Sat May 20, 2017 6:15 pm

Re: Trouble with Serial OLED Screen 0.96"

Post by mindflayer14 »

Here's how it's wired:
wiring.png
wiring.png (415.26 KiB) Viewed 669 times
I'm powering it with a 6v battery pack, and when I run it it doesn't create an error, it just says that it flashed successfully. I'm using the Particle Web IDE if that helps, and I've got a PIR motion sensor also attached (going to code that later, disconnected it for the picture).

User avatar
mindflayer14
 
Posts: 5
Joined: Sat May 20, 2017 6:15 pm

Re: Trouble with Serial OLED Screen 0.96"

Post by mindflayer14 »

In fact, I found a Particle tutorial on exactly how to use this. Thanks!

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Trouble with Serial OLED Screen 0.96"

Post by Franklin97355 »

Can you please post the link to that tutorial for others to see?


User avatar
mindflayer14
 
Posts: 5
Joined: Sat May 20, 2017 6:15 pm

Re: Trouble with Serial OLED Screen 0.96"

Post by mindflayer14 »

How do I close this topic?

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”