Trinket Arduino Code Error

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ipadeflteacher
 
Posts: 35
Joined: Fri May 11, 2018 3:52 am

Trinket Arduino Code Error

Post by ipadeflteacher »

I was able to upload a sample code to the trinket. However, my student is making the Neo Pixel Glasses and we are getting this error code: We are all new to Arduino coding so I was hoping this would be an easy fix!

Thanks!

Arduino: 1.8.5 (Mac OS X), Board: "Adafruit Trinket (ATtiny85 @ 8MHz)"

/Users/richardcampbell/Documents/Arduino/sketch_sep04d/sketch_sep04d.ino:1:32: fatal error: Adafruit_NeoPixel.h: No such file or directory
#include <Adafruit_NeoPixel.h>
^
compilation terminated.
exit status 1
Error compiling for board Adafruit Trinket (ATtiny85 @ 8MHz).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Trinket Arduino Code Error

Post by Franklin97355 »

Code: Select all

 fatal error: Adafruit_NeoPixel.h: No such file or directory
#include <Adafruit_NeoPixel.h>
Have you downloaded and installed the Neopixel library yet?

User avatar
ipadeflteacher
 
Posts: 35
Joined: Fri May 11, 2018 3:52 am

Re: Trinket Arduino Code Error

Post by ipadeflteacher »

No I don't think so. I don't remember seeing the option to download the library in the Trinket setup guide.
Maybe I missed it!

Thank you so much for the quick reply!!!

Richard

User avatar
ipadeflteacher
 
Posts: 35
Joined: Fri May 11, 2018 3:52 am

Re: Trinket Arduino Code Error

Post by ipadeflteacher »

Worked like a charm!!

Thanks again for your help!!!!!

Richard

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

Return to “For Educators”