-
Getting started with Neopixels and Arduino
https://learn.adafruit.com/adafruit-neopixel-uberguide/the-magic-of-neopixels
https://create.arduino.cc/projecthub/zanycadencedev/getting-started-with-arduino-and-neopixels-013360
https://learn.adafruit.com/adafruit-neopixel-uberguide/arduino-library-use -
Troubleshooting Neopixels
https://learn.adafruit.com/neopixel-painter/test-neopixel-strip
https://blog.adafruit.com/2016/10/28/tips-for-troubleshooting-neopixel-glitches
https://learn.adafruit.com/digital-led-strip/troubleshooting -
How to Install the Neopixel Directory
/* Project Name: How to Install the Neopixel Directory with Sketch Name: Patrick Chen School: Sir Winston Churchill Secondary Date: January 19, 2018 Author: Limor Fried (Lady Ada) Changes: Modified by Patrick Chen, January 15, 2018 Notes: Location of compressed Neopixel file https://github.com/adafruit/Adafruit_NeoPixel 1. Download the compressed Neopixel file from
https://github.com/adafruit/Adafruit_NeoPixel 2. Locate the directory where your Arduino sketches are stored. For example, "H:\My Documents\Arduino" 3. Click on the downloaded ZIP file to open its location and content. 4. Drag the file located inside the ZIP file, which includes "Adafruit_Neopixel-mster", into the directory that you found in step 2. 5. To use NeoPixel, first open the file you extracted in step 4. Then, copy all of the files inside. 6. Find the Neopixel file that you are using, for example, "H:\My Documents\Arduino\skethc_dec12a" 7. Enter the file for the program, and paste the copied files from step 5 into this location in step 6. 8. Open the Arduino program and change the first line of code from #include to #include "./Adafuit_NeoPixel.h" */ #include #define PIN 6 #define N_LEDS 1 Adafruit_NeoPixel strip = Adafruit_NeoPixel(N_LEDS, PIN, NEO_GRB + NEO_KHZ800); void setup() { strip.begin(); } void loop() { chase(strip.Color(255, 0, 0)); // Red chase(strip.Color(0, 255, 0)); // Green chase(strip.Color(0, 0, 255)); // Blue } static void chase(uint32_t c) { for(uint16_t i=0; i