128 x 32 SPI OLED Display

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Lakesed
 
Posts: 58
Joined: Tue Mar 11, 2014 7:30 pm

128 x 32 SPI OLED Display

Post by Lakesed »

I am trying out my newly purchased 128 x 32 SPI Oled. I downloaded the Adafruit SSD1306 library as instructed and uncommented the #defineSSD 1306_128_32 in the Adafruit_SSD_1306.h file.. I loaded the SSD1306_128__SPI example. The first time I complied it I got an error saying You can have only one diplay. I went back and commented out the #defineSSD 1306_128_64 entry. I tried to compile again and got the following errors:
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp: In constructor 'RobotControl::RobotControl()':
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'LCD_CS' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'DC_LCD' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'RST_LCD' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp: In member function 'void RobotControl::begin()':
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXA' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXB' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXC' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:18: error: 'MUXD' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:19: error: 'MUX_IN' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:22: error: 'BUZZ' was not declared in this scope
C:\Program Files (x86)\Arduino\libraries\Robot_Control\ArduinoRobot.cpp:25: error: 'Serial1' was not declared in this scope
What do you suggest?

User avatar
Franklin97355
 
Posts: 23874
Joined: Mon Apr 21, 2008 2:33 pm

Re: 128 x 32 SPI OLED Display

Post by Franklin97355 »

Yep, we've seen this before. The Arduino IDE has a robot control library that loads before our library. You have two options, remove (don't just rename, that does not work) the robot control library from the Arduino/libraries folder or use version 1.0.4 of the IDE.

User avatar
Lakesed
 
Posts: 58
Joined: Tue Mar 11, 2014 7:30 pm

Re: 128 x 32 SPI OLED Display

Post by Lakesed »

Removing the "robot control" file from the library got rid of the Robot errors I got yesterday. I downloaded the Adafruit_SSD1306 folder and changed the buffer size in the Adafruit_SSD1306.h file as directed but today I am getting errors as follows:
In file included from ssd1306_128x32_spi.ino:22:
C:\Users\Gilbert Naramor\Documents\Arduino\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:131: error: expected class-name before '{' token
ssd1306_128x32_spi.ino: In function 'void setup()':
ssd1306_128x32_spi:118: error: 'class Adafruit_SSD1306' has no member named 'fillCircle'
ssd1306_128x32_spi:118: error: 'class Adafruit_SSD1306' has no member named 'width'
ssd1306_128x32_spi:118: error: 'class Adafruit_SSD1306' has no member named 'height'
ssd1306_128x32_spi:151: error: 'class Adafruit_SSD1306' has no member named 'setTextSize'
ssd1306_128x32_spi:152: error: 'class Adafruit_SSD1306' has no member named 'setTextColor'
ssd1306_128x32_spi:153: error: 'class Adafruit_SSD1306' has no member named 'setCursor'
ssd1306_128x32_spi:154: error: 'class Adafruit_SSD1306' has no member named 'println'
ssd1306_128x32_spi:155: error: 'class Adafruit_SSD1306' has no member named 'setTextColor'
ssd1306_128x32_spi:156: error: 'class Adafruit_SSD1306' has no member named 'println'
ssd1306_128x32_spi:157: error: 'class Adafruit_SSD1306' has no member named 'setTextSize'
ssd1306_128x32_spi:158: error: 'class Adafruit_SSD1306' has no member named 'setTextColor'
ssd1306_128x32_spi:159: error: 'class Adafruit_SSD1306' has no member named 'print'
ssd1306_128x32_spi:159: error: 'class Adafruit_SSD1306' has no member named 'println'
ssd1306_128x32_spi:165: error: 'class Adafruit_SSD1306' has no member named 'drawBitmap'

User avatar
Franklin97355
 
Posts: 23874
Joined: Mon Apr 21, 2008 2:33 pm

Re: 128 x 32 SPI OLED Display

Post by Franklin97355 »

I would remove the existing library and re-download and install the latest one. I just ran the example and got no errors on compile.

User avatar
Lakesed
 
Posts: 58
Joined: Tue Mar 11, 2014 7:30 pm

Re: 128 x 32 SPI OLED Display

Post by Lakesed »

Oled is working fine now. I had neglected to download and install the Adafruit GFX graphics core library.

User avatar
Franklin97355
 
Posts: 23874
Joined: Mon Apr 21, 2008 2:33 pm

Re: 128 x 32 SPI OLED Display

Post by Franklin97355 »

Glad you figured it out. (Hack On).

User avatar
Lakesed
 
Posts: 58
Joined: Tue Mar 11, 2014 7:30 pm

Re: 128 x 32 SPI OLED Display

Post by Lakesed »

On August 15th I purchase a 128 x 32 OLED display, invoice #564710. It has worked perfectly until yesterday. I am using it to display data from an Ultimate GPS. I have used it with 2 scripts and have never has a problem once I downloaded the libraries etc. until yesterday. When I powered it up the Ultimate GPS module transmits through the Serial Monitor normally but there is nothing on the OLED. I have re- soldered all the connections to eliminate the possibility of a bad connection. It still does not come on. Is there any warranty on this device?
Thanks,

Gilbert Naramor

User avatar
Franklin97355
 
Posts: 23874
Joined: Mon Apr 21, 2008 2:33 pm

Re: 128 x 32 SPI OLED Display

Post by Franklin97355 »

Could you post clear pictures of both sides of your board showing any soldering you have done and the connections to it? Thanks.

User avatar
Lakesed
 
Posts: 58
Joined: Tue Mar 11, 2014 7:30 pm

Re: 128 x 32 SPI OLED Display

Post by Lakesed »

On August 15th I purchase a 128 x 32 OLED display, invoice #564710. It has worked perfectly until yesterday. I am using it to display data from an Ultimate GPS. I have used it with 2 scripts and have never has a problem once I downloaded the libraries etc. until yesterday. When I powered it up today the Ultimate GPS module transmits through the Serial Monitor normally but there is nothing on the OLED. I am using a Arduino MINI PRO board. I tested the sketch on a UNO before moving it to the MINI PRO. It worked fine on both. I have re- soldered all the connections to eliminate the possibility of a bad connection. It still does not come on. Is there any warranty on this device?
I have done nothing to it since it worked fine yesterday.
Thanks,
photo (26).JPG
photo (26).JPG (550.52 KiB) Viewed 3472 times
photo (31).JPG
photo (31).JPG (663.59 KiB) Viewed 3472 times
photo (33).JPG
photo (33).JPG (619.86 KiB) Viewed 3472 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: 128 x 32 SPI OLED Display

Post by adafruit_support_rick »

Thanks for the pictures. Please email [email protected] with a link to this thread for a replacement OLED

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”