Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

error 'Adafruit_SSD1306' does not name a type
Moderators: adafruit_support_bill, adafruit

error 'Adafruit_SSD1306' does not name a type

by rsherwoo on Mon Sep 30, 2013 11:23 pm

This is my error;
'Adafruit_SSD1306' does not name a type

This is the line of code it does not like;
Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);

Is this a library error or something? I'm attempting to use the example for the monochrome 128x64 OLED using SPI. This line of code is after the libraries' h files are referenced so I don't know what gives.

Thanks
rsherwoo
 
Posts: 4
Joined: Mon Sep 30, 2013 11:17 pm

Re: error 'Adafruit_SSD1306' does not name a type

by EternalCore on Tue Oct 01, 2013 12:49 am

You require these Library files: https://github.com/adafruit/Adafruit_SSD1306

Also if you have them and they are installed correctly then post your code so we can see where the error might be.
Things I've Made Here:
1.[101-Help]~12v -> 5v 1.5A Regulated Power For NeoPixels.: http://goo.gl/uMXuk7
2.[Example]NeoPixel Strip Scrolling Cylon Eye!: http://goo.gl/4RzWQQ
User avatar
EternalCore
 
Posts: 239
Joined: Tue Jul 30, 2013 3:57 pm
Location: Canada

Re: error 'Adafruit_SSD1306' does not name a type

by adafruit_support_bill on Tue Oct 01, 2013 6:27 am

This guide explains how and where the library should be installed: http://learn.adafruit.com/adafruit-all- ... nstall-use

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

Re: error 'Adafruit_SSD1306' does not name a type

by rsherwoo on Tue Oct 01, 2013 10:29 pm

Fixed it, thanks. I must have been lucky for a wile now. The cpp and h files cannot be in a sub folder of the one I placed in the libraries folder.
rsherwoo
 
Posts: 4
Joined: Mon Sep 30, 2013 11:17 pm