0

Adafruit OLED 938 128 X 64 on Arduino
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit OLED 938 128 X 64 on Arduino

by PZELINGER on Wed Mar 28, 2018 10:15 pm

Using a Duemilanova with SPI wiring and the test program; ssd1306_128x64_spi. When compiling it errors "Height incorrect, please fix Adafruit_SSD1306.h!" and will not load. If I change 64 lines to 32 in the program, SSD1306_LCDHEIGHT != 64, it will compile and load but get no response from the display. Wiring is as instructed for SPI.

PZELINGER
 
Posts: 3
Joined: Fri Apr 17, 2015 9:54 am

Re: Adafruit OLED 938 128 X 64 on Arduino

by franklin97355 on Mon Apr 09, 2018 6:30 pm

You need to make the change in Adafruit_SSD1306.h as the error message says.

franklin97355
 
Posts: 19036
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit OLED 938 128 X 64 on Arduino

by PZELINGER on Tue Apr 10, 2018 12:12 pm

Change what?? As I stated " If I change 64 lines to 32 in the program, SSD1306_LCDHEIGHT != 64, it will compile and load but get no response from the display." I have changed the height from 64 to 32 and back numerous times. At 64 it will not compile; at 32 it compiles and loads but does not display. It is a 64 display...

PZELINGER
 
Posts: 3
Joined: Fri Apr 17, 2015 9:54 am

Re: Adafruit OLED 938 128 X 64 on Arduino

by franklin97355 on Tue Apr 10, 2018 1:19 pm

In the Adafruit_SSD1306.h file as both I and the error message said.

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

    SSD1306_96_16

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

franklin97355
 
Posts: 19036
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit OLED 938 128 X 64 on Arduino

by PZELINGER on Fri Apr 20, 2018 1:18 pm

Sorry, I did that. I was toggling that as the display should still work on half set at 32. I thought there was something else to try. Display is dead.

Thank you, Paul

PZELINGER
 
Posts: 3
Joined: Fri Apr 17, 2015 9:54 am

Re: Adafruit OLED 938 128 X 64 on Arduino

by adafruit_support_carter on Thu Apr 26, 2018 11:55 am

Post a photo of your setup showing all connections.

If I change 64 lines to 32 in the program, SSD1306_LCDHEIGHT != 64, it will compile and load but get no response from the display.

You are suppose to change the header file, not that line of code in the example sketch.

I was toggling that as the display should still work on half set at 32.

No it won't. You need to:
* edit Adafruit_SSD1306.h as shown above
* run the ssd1306_128x32_spi.ino example as is without any edits

adafruit_support_carter
 
Posts: 6640
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.