#include // Which pin on the Arduino is connected to the NeoPixels? #define PIN 38 // On Trinket or Gemma, suggest changing this to 1 // How many NeoPixels are attached to the Arduino? #define NUMPIXELS 1 // Popular NeoPixel ring size // When setting up the NeoPixel library, we tell it how many pixels, // and which pin to use to send signals. Note that for older NeoPixel // strips you might need to change the third parameter -- see the // strandtest example for more information on possible values. Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); void setup() { pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED) } void loop() { pixels.setPixelColor(0, pixels.Color(0, 150, 0)); pixels.show(); // Send the updated pixel colors to the hardware. delay(500); // Pause before next pass through loop pixels.setPixelColor(0, pixels.Color(150, 0, 0)); pixels.show(); // Send the updated pixel colors to the hardware. delay(500); pixels.setPixelColor(0, pixels.Color(0, 0, 150)); pixels.show(); // Send the updated pixel colors to the hardware. delay(500); }