Skip to content

SquareWear Neopixels

If you would like to work with Neo pixels download the neopixel library!

Once on the page click on the green button
NeoButton

Once downloaded you should have a folder called Adafruit_NeoPixel-master
Rename the folder so that it is now Adafruit_NeoPixel

Copy this folder

Go to your Documents and find you Arduino folder

Screen Shot 2015-10-15 at 3.15.53 PM

Inside your Arduino folder you will see a folder called libraries
Past the Adafruit_NeoPixel folder into the libraries folder.

If you have any Arduino programs open, close them and reopen the software.

Now when you go to File -> Examples you should see an option that says Adafruit_NeoPixel

Screen Shot 2015-10-15 at 3.19.30 PM

Looking at your Neopixel Strip you will notice it has three wires and on the strip it has arrows pointing in a direction. These arrows should be pointing away from your wires.

 

3d_printing_cyberpunk-spikes-gemma-03

On the end of the Neopixel you will see GND, DI, 5V.

Place..
5v wire to VCC on SquareWear
GND wire to GND on SquareWear
and DI wire into any Digital pin (for example  D10)

Then run the simple example code found in the Adafruit_NeoPixel examples

In the loop()  you will see

pixels.setPixelColor(i, pixels.Color(0,150,0))

where  the values in pixel.Color stand for (red, green, blue)

Modify these numbers to see different colors on the neopixel strip.