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

The code
// A NeoPixel ring on GPIO 5 runs a rainbow (Adafruit_NeoPixel).
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel ring(16, 5, NEO_GRB + NEO_KHZ800);
void setup() {
ring.begin();
ring.setBrightness(90);
}
void loop() {
for (long hue = 0; hue < 65536; hue += 768) {
for (int i = 0; i < ring.numPixels(); i++) {
ring.setPixelColor(i, ring.gamma32(ring.ColorHSV(hue + i * 65536L / ring.numPixels())));
}
ring.show();
delay(20);
}
}
More like this

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

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