Adafruit NeoPixel Compile Error

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
techjim
 
Posts: 1
Joined: Sat Jun 15, 2013 12:18 pm

Adafruit NeoPixel Compile Error

Post by techjim »

Just recieved my NeoPixels and tried to compile the example program available. Receiving error somewhat like, but not exactly to, another post.

Adafruit_NeoPixel does not have a type
strandtest:10: error: Adafruit_NeoPixel does not name a type

I have done the basics... unzipped fully, copied Adafruit_NeoPixel.cpp and Adafruit_NeoPixel.h into sketch along with standtest. Also have folder correctly named Adafruit_NeoPixel

Thanks.

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

Re: Adafruit NeoPixel Compile Error

Post by adafruit_support_rick »

TechJim wrote:copied Adafruit_NeoPixel.cpp and Adafruit_NeoPixel.h into sketch along with standtest
The library files do not go into the sketch folder. They go into the libraries folder.
Please refer to our Arduino Libraries tutorial for detailed instructions on installing libraries.
http://learn.adafruit.com/adafruit-all- ... nstall-use

User avatar
superwayne
 
Posts: 4
Joined: Sun Jun 30, 2013 10:13 pm

Re: Adafruit NeoPixel Compile Error

Post by superwayne »

I'm having the same problem there is no zip file, I've opened the file down to sketch copied and pasted in to sketch and rename it but still get the error

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

Re: Adafruit NeoPixel Compile Error

Post by adafruit_support_rick »

If you're using a Mac, it will automatically unzip the file. Take the resulting folder, rename it as specified on the download page, and move it to the libraries folder. Do not move it to the same folder as your sketch. Do not move the libraries files out of the folder.

Please refer to our Arduino Libraries tutorial here:
http://learn.adafruit.com/adafruit-all- ... nstall-use

User avatar
dunk8888
 
Posts: 9
Joined: Tue Jan 14, 2014 12:33 pm

Re: Adafruit NeoPixel Compile Error

Post by dunk8888 »

ime getting the same kind of error,ive coppied the library to the library folder renamed it exactly but says cant find the Adafruit-neopixel.h file no such file or directory.ive not touched anything just unziped copyed to library and renamed exactly,ime using android ide,thanks

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

Re: Adafruit NeoPixel Compile Error

Post by adafruit_support_rick »

Open the Preferences in the Arduino IDE, and note the path to the sketchbook folder. Inside of the sketchbook folder, you should have a folder named "libraries" (the spelling is important).
Inside of the libraries folder , you should have a folder named "Adafruit_NeoPixel". You must use an underscore, not a hyphen.
Inside of the Adafruit_NeoPixel folder, you should have two files, Adafruit_NeoPixel.h and Adafruit_NeoPixel.cpp.

Make sure you have this exact structure.

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

Return to “Other Arduino products from Adafruit”