No idea if this is the right place for this, but here goes…
I’m making a very basic project, nothing fancy, literally copied right from the instruction book. I clicked Verify to see if I messed anything up, and I got this
Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno"
ColoredLight:3:31: error: Adafruit_NeoPixel.h: No such file or directory
compilation terminated.
exit status 1
Adafruit_NeoPixel.h: No such file or directory
Invalid library found in C:\Users\<username>\Documents\Arduino\libraries\kosmobits_archive: no headers files (.h) found in C:\Users\<username>\Documents\Arduino\libraries\kosmobits_archive
Invalid library found in C:\Users\<username>\Documents\Arduino\libraries\kosmobits_archive: no headers files (.h) found in C:\Users\<username>\Documents\Arduino\libraries\kosmobits_archive
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The code is this
void setup() {
#include <Adafruit_NeoPixel.h>
#include <KosmoBits.Pixel.h>
KosmoBits_Pixel pixel;
//These vars are set by the .h files above
//int red = 0;
//int green = 0;
//int blue = 0;
//int brightness = 0;
}
void loop() {
brightness = 50;
//red
red = 255;
green = 0;
blue = 0;
pixel.setColor(red, green, blue, brightness);
delay(500);
//green
red = 0;
green = 255;
blue = 0;
pixel.setColor(red, green, blue, brightness);
delay(500);
//blue
red = 0;
green = 0;
blue = 255;
pixel.setColor(red, green, blue, brightness);
delay(500);
}
Did I mess anything up? I can see the .h file where it’s supposed to be, but Arduino can’t find it.