There is no USPS pickup on Monday Feb 15th, 2016 because of President's Day. USPS orders placed after 11am EST Fri February 12th will go out Tuesday February 16. UPS orders will ship as normal.

SSD1306_128X32_i2c.ino won't compile
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

SSD1306_128X32_i2c.ino won't compile

by mgapilot on Mon Jan 21, 2013 11:45 pm

Keep getting the same error when compiling this driver. Using a 128X32 i2c OLED display with Arduino Mega 2560 using Arduino 1.0.3
I have redownloaded and tried moving folders. ( I get separate errors when folders are not correct)
Any ideas for a newbee?



#error("Height incorrect, please fix Adafruit_SSD1306.h!");

mgapilot
 
Posts: 2
Joined: Mon Jan 21, 2013 11:18 pm

Re: SSD1306_128X32_i2c.ino won't compile

by adafruit_support_bill on Tue Jan 22, 2013 7:08 am

The library supports different display sizes. You need to select which one you are using in Adafruit_SSD1306.h.
For a 128x32 display, comment out the "#define SSD1306_128_64" and un-comment the "#define SSD1306_128_32" as below.

Code: Select all | TOGGLE FULL SIZE
/*=========================================================================
SSD1306 Displays
-----------------------------------------------------------------------
The driver is used in multiple displays (128x64, 128x32, etc.).
Select the appropriate display below to create an appropriately
sized framebuffer, etc.

SSD1306_128_64 128x64 pixel display

SSD1306_128_32 128x32 pixel display

You also need to set the LCDWIDTH and LCDHEIGHT defines to an
appropriate size

-----------------------------------------------------------------------*/
//   #define SSD1306_128_64
 #define SSD1306_128_32
/*=========================================================================*/

adafruit_support_bill
 
Posts: 45799
Joined: Sat Feb 07, 2009 10:11 am

Re: SSD1306_128X32_i2c.ino won't compile

by mgapilot on Tue Jan 22, 2013 11:59 am

That did it!
Thank you.
mgapilot
 
Posts: 2
Joined: Mon Jan 21, 2013 11:18 pm

Re: SSD1306_128X32_i2c.ino won't compile

by hjojo on Wed Mar 20, 2013 5:15 pm

Hello,
Sorry for my english, I'm French.
I have the same problem but once I set the correct display is the message on arduino

ssd1306_128x32_spi.cpp:70:2: error: #error ("Height incorrect, please fix Adafruit_SSD1306.h!");
thank you for your answer
hjojo
 
Posts: 13
Joined: Wed Mar 20, 2013 5:11 pm

Please be positive and constructive with your questions and comments.