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() {
}