ESP32 RGB-LED
With the RGB-LED you can display different colors. The RGB-LED consists of three LEDs that light up in the colors red, green and blue. By mixing these colors, many different colors can be displayed.

RGB-LED
Module onBoard
The RGB-LED is built on the MCU S2! You don't have to connect anything else here.
Programming (Arduino)
This sketch lets the RGB-LED light up in a random color every second.
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel rgb_led_1
void setup() {
rgb_led_1.begin();
rgb_led_1.setBrightness(30);
}
void loop() {
if (time_startInterval > time_actualInterval + intervalInterval)
{
time_actualInterval = millis();
rgb_led_1.setPixelColor(0,rgb_led_1.Color(random(0, 255), random(0, 255), random(0, 255)));
rgb_led_1.show();
}
}
Programming (Blockly)
In Blockly, the sensor can be read using the following block: