DHE38128D , Can this product control several RGB lights separately,
The Wikipedia page (link below) contains sample programs for controlling all RGB LEDs simultaneously. You can modify the program to control each RGB LED individually.
https://www.elecrow.com/wiki/CrowPanel_1.28inch-HMI_ESP32_Rotary_Display.html
https://www.elecrow.com/wiki/CrowPanel_1.28inch-HMI_ESP32_Rotary_Display_Arduino_lesson1.html
include <Adafruit_NeoPixel.h>
define LED_PIN 48
define LED_NUM 5
Adafruit_NeoPixel strip(LED_NUM, LED_PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.setBrightness(50); // Moderate brightness
strip.show(); // Initialize to off
}
void loop() {
// Set the color of each LED individually
strip.setPixelColor(0, strip.Color(255, 0, 0)); // LED0 = Red
`strip.setPixelColor(1, strip.Color(0, 255, 0)); // LED1 = Green
strip.setPixelColor(2, strip.Color(0, 0, 255)); // LED2 = Blue
strip.setPixelColor(3, strip.Color(255, 255, 0)); // LED3 = Yellow
strip.setPixelColor(4, strip.Color(255, 0, 255)); // LED4 = Purple
strip.show(); // Send data to all LEDs at once
delay(2000);
/ Change the color of each LED (again, control them individually)
strip.setPixelColor(0, strip.Color(0, 255, 255)); // Cyan
strip.setPixelColor(1, strip.Color(255, 0, 0)); // Red
strip.setPixelColor(2, strip.Color(255, 255, 255)); // White` strip.setPixelColor(3, strip.Color(0, 0, 0)); // off
strip.setPixelColor(4, strip.Color(0, 128, 255)); // light blue
strip.show();
delay(2000);
}
