error 'Adafruit_SSD1306' does not name a type

by rsherwoo on Mon Sep 30, 2013 10: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 10:17 pm

Re: error 'Adafruit_SSD1306' does not name a type

by EternalCore on Mon Sep 30, 2013 11:49 pm

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 2:57 pm
Location: Canada

Re: error 'Adafruit_SSD1306' does not name a type

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

This guide explains how and where the library should be installed: http://learn.adafruit.com/adafruit-all- ... nstall-use
User avatar
adafruit_support_bill
 
Posts: 28061
Joined: Sat Feb 07, 2009 9:11 am

Re: error 'Adafruit_SSD1306' does not name a type

by rsherwoo on Tue Oct 01, 2013 9: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 10:17 pm