Hello PJRC!
So I have been poking around the forums and trying to set up the SSD1306 128x32 SPI display for the past few days with extremely limited success. Initially I was using the unedited Adafruit 1306 and GFX libraries and for a short time was able to have the display output a garbled/glitchy splash screen.
I have since changed the SSD1306.h over to Nick Gammon's hardware SPI to see if that would have any positive effect. At this point I'm now unable to get the Display to power up with either hardware or software SPI. Any sage advice from teensy/arduino veterans?
So I have been poking around the forums and trying to set up the SSD1306 128x32 SPI display for the past few days with extremely limited success. Initially I was using the unedited Adafruit 1306 and GFX libraries and for a short time was able to have the display output a garbled/glitchy splash screen.
I have since changed the SSD1306.h over to Nick Gammon's hardware SPI to see if that would have any positive effect. At this point I'm now unable to get the Display to power up with either hardware or software SPI. Any sage advice from teensy/arduino veterans?
Code:
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_DC 8
#define OLED_CS 10
#define OLED_CLK 13
#define OLED_MOSI 11
#define OLED_RESET 7
#define LED 6
Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
void setup(){
pinMode(LED, OUTPUT);
Serial.begin(9600);
display.begin(SSD1306_SWITCHCAPVCC);
display.display();
}
void loop(){
digitalWrite(LED,HIGH);
delay(200);
digitalWrite(LED,LOW);
delay(200);
}