#include <Adafruit_NeoPixel.h>
// Declare a NeoPixel strip object with the specified number of pixels and pin number
#define NUM_PIXELS 64
Adafruit_NeoPixel strip(NUM_PIXELS, 6, NEO_GRB + NEO_KHZ800);
void setup() {
// Initialize the NeoPixel strip
strip.begin();
// Set all pixels to off
strip.clear();
// Show the changes on the strip
strip.show();
}
void loop() {
// Loop through each pixel in the strip
for (int i = 0; i < NUM_PIXELS; i++) {
// Calculate the color values for the pixel
int g = (i * 255) / (NUM_PIXELS - 1);
int b = 255 - g;
// Set the pixel to the calculated color
strip.setPixelColor(i, strip.Color(0, g, b));
}
// Show the changes on the strip
strip.show();
// Delay for a short time
delay(100);
}
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5
ring1:GND
ring1:VCC
ring1:DIN
ring1:DOUT
logic1:D0
logic1:D1
logic1:D2
logic1:D3
logic1:D4
logic1:D5
logic1:D6
logic1:D7
logic1:GND