I'm using the standard demo code from GitHub, and have it wired up the same way as shown. At first the code was complaining about the value of SSD1306_LCDHEIGHT so I set it to define and it's uploaded fine.
Since I haven't changed any of the other code, I'm surprised it doesn't work correctly. Here are the initialization statements in the code. Where else should I check?
Code: Select all
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
#define SSD1306_LCDHEIGHT 32
#define NUMFLAKES 10
#define XPOS 0
#define YPOS 1
#define DELTAY 2
#define LOGO16_GLCD_HEIGHT 16
#define LOGO16_GLCD_WIDTH 16