I'm working on an LED strip project for the first time and i'm already facing some problems. When compiling the strandtest i get a lot of errors, so i tried to narrow it down. But i just tried compiling only the #include <Adafruit_NeoPixel.h> and ended up with all the errors. I have went over the library installation and all seems to be in order, and now i've run out of ideas.
The library is installed where it should be (my documents..), and i'm running the latest version of arduino (1.0.6).
I must have done something very wrong, but i got no clue atm.
Help would be greatly appreciated :)
Library problem
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: Library problem
It would help if you could post the code you are using and the error messages you are seeing.
Libraries should be installed according to the instructions here: http://learn.adafruit.com/adafruit-all- ... nstall-use
Libraries should be installed according to the instructions here: http://learn.adafruit.com/adafruit-all- ... nstall-use
-
- Posts: 10
- Joined: Tue Aug 05, 2014 3:45 am
Re: Library problem
Yes i followed that guide
error:
error:
Arduino: 1.0.6 (Windows 7), Board: "Atmega32u4 breakout"
In file included from simple.ino:1:
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:49: error: expected `)' before 'n'
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:55: error: 'uint8_t' has not been declared
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:56: error: 'uint16_t' has not been declared
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:56: error: 'uint8_t' has not been declared
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:56: error: 'uint8_t' has not been declared
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:56: error: 'uint8_t' has not been declared
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:57: error: 'uint16_t' has not been declared
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:57: error: 'uint32_t' has not been declared
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:58: error: 'uint8_t' has not been declared
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:60: error: ISO C++ forbids declaration of 'uint8_t' with no type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:61: error: expected ';' before '*' token
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:63: error: 'uint16_t' does not name a type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:65: error: 'uint32_t' does not name a type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:67: error: 'uint32_t' does not name a type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:74: error: 'uint16_t' does not name a type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:77: error: 'uint8_t' does not name a type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:84: error: 'uint8_t' does not name a type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:86: error: 'uint32_t' does not name a type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:89: error: ISO C++ forbids declaration of 'uint8_t' with no type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:90: error: expected ';' before '*' token
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:91: error: 'uint8_t' does not name a type
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h: In member function 'bool Adafruit_NeoPixel::canShow()':
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:70: error: 'micros' was not declared in this scope
C:\Users\Bolle\Documents\Arduino\libraries\Adafruit_NeoPixel/Adafruit_NeoPixel.h:70: error: 'endTime' was not declared in this scope
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: Library problem
I just compiled strandtest with 1.0.6 and did not get any errors. It is possible your copy of the library is corrupted somehow. Try downloading it again.
-
- Posts: 10
- Joined: Tue Aug 05, 2014 3:45 am
Re: Library problem
Tried another board and it worked. After reading up i understand that the board (atmega32u4 breakout) doesnt really work all that well with these libraries, even with teensyduino.
I still want to use arduino language to get started so ill probably order another board. Lucky me i at least got a el-wire for halloween :)
I still want to use arduino language to get started so ill probably order another board. Lucky me i at least got a el-wire for halloween :)
Please be positive and constructive with your questions and comments.