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.
Adafruit NeoPixel Compile Error
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Adafruit NeoPixel Compile Error
The library files do not go into the sketch folder. They go into the libraries folder.TechJim wrote:copied Adafruit_NeoPixel.cpp and Adafruit_NeoPixel.h into sketch along with standtest
Please refer to our Arduino Libraries tutorial for detailed instructions on installing libraries.
http://learn.adafruit.com/adafruit-all- ... nstall-use
- superwayne
- Posts: 4
- Joined: Sun Jun 30, 2013 10:13 pm
Re: Adafruit NeoPixel Compile Error
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
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Adafruit NeoPixel Compile Error
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
Please refer to our Arduino Libraries tutorial here:
http://learn.adafruit.com/adafruit-all- ... nstall-use
- dunk8888
- Posts: 9
- Joined: Tue Jan 14, 2014 12:33 pm
Re: Adafruit NeoPixel Compile Error
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
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Adafruit NeoPixel Compile Error
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.
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.
Please be positive and constructive with your questions and comments.