adafruit / Adafruit_SSD1306

Arduino library for SSD1306 monochrome 128x64 and 128x32 OLEDs
http://www.adafruit.com/category/63_98
Other
1.75k stars 964 forks source link

ssd1306_128x32_i2c.ino #204

Open shalikashvili opened 3 years ago

shalikashvili commented 3 years ago

Note: The above code has no effect, and fails to instantiate an Adafruit_SSD1306 object instance

The line should read: Adafruit_SSD1306 display = Adafruit_SSD1306(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

marc-gist commented 3 years ago

also needs #include <Adafruit_I2CDevice.h>

BillyDonahue commented 3 years ago

The analysis of line 36 is incorrect. Whatever the problem is, it's not the syntax of the variable definition.