/* LED Blink
Autor: ZARR
Date: 06.02.2024
*/
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel Pixelring(16, 4, NEO_GRB + NEO_KHZ800); //Anzahl der Pixel, Pin, Bauteil definieren
int x;
void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT); //LED Output auf Pin 13
Pixelring.begin();
}
void loop() {
// put your main code here, to run repeatedly:
Pixelring.setPixelColor(x, Pixelring.Color(255-x*8,x*8,x*4)); //Die LED auswählen, und Farbe bestimmen
Pixelring.show();
delay(100);
x++;
if(x==16)x=0;
Pixelring.clear();
}