NeoPixel ring
A 16-pixel WS2812 ring on pin 6: a spinning comet.

The code
// A 16-pixel NeoPixel ring on pin 6: a comet goes round.
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel ring(16, 6, NEO_GRB + NEO_KHZ800);
int head = 0;
void setup() {
ring.begin();
ring.setBrightness(120);
}
void loop() {
ring.clear();
for (int t = 0; t < 5; t++) {
int i = (head - t + 16) % 16;
ring.setPixelColor(i, ring.Color(255 >> t, 80 >> t, 255 >> (t + 1)));
}
ring.show();
head = (head + 1) % 16;
delay(60);
}
More like this

ESP32: NeoPixel rainbow
A 16-pixel ring on GPIO 5 runs a rainbow with Adafruit_NeoPixel.
ArduinoESP32 DevKit V1

MicroPython: NeoPixel ring
A colour runs round a 16-pixel ring on GP16, with the neopixel module.
MicroPythonRaspberry Pi Pico

MicroPython: PIO, a WS2812 driver in four instructions
A PIO program written in Python drives a 16-pixel ring: the RP2040’s own state machine shifts out every bit.
MicroPythonRaspberry Pi Pico