D1 Mini Shield – RGB LED (Individual)

Last Updated on 15. October 2026 by SuffocationLink status: OK

Als ich diese Zusatzplatine sah, fragte ich mich, welchen Sinn es ergibt, wenn man doch eine Zusatzplatine mit 8 RGB LEDsLink status: OK hat, die viel vielfältiger ist. Ist es der niedrigere Preis oder simpler Purismus?

For the D1 mini ESP8266 and ESP32, go here:

Facts

  • Eine RGB LED
DescriptionNameD1ESP32C3S2
RGB PinD2421833
D1 Mini Shield – RGB LED (Einzeln) – Pinbelegung

Schematic

Compatibility

D1 TypeCompatibleReason if not
D1 miniYes
D1 mini ProYesUntested
D1 mini LiteYesUntested
D1 32Yes


S2 mini
Yes
C3Yes
Kompatibilität zu den D1 Boards

Areas of application

  • Bunte Beleuchtung

Views

Programming

Libraries

Arduino ESP32 Bibliothek V2.0.2

Arduino ESP8266 Bibliothek V3.0.2

https://github.com/adafruit/Adafruit_NeoPixelLink status: OK

Test programme

Source code RGBPixelExample.ino (GitHubLink status: OK)

/**
   Example for Singel RGB
   Show RGB and CMY

   Libs:
   https://github.com/adafruit/Adafruit_NeoPixel

   Written by S. Famach GPL2
   Visit https://www.fambach.net
*/


#define LED_COUNT 7


// output pin +
// pin where the pir is connected
#if defined(ESP8266) // d1 mini
#pragma message("ESP8266 Remove Shield while start!")
#define LED_PIN D2

#elif defined ( ESP32 ) // d1 mini esp32

#if CONFIG_IDF_TARGET_ESP32C3 // c3
#pragma message("ESP32C3")
#define LED_PIN 8

#elif CONFIG_IDF_TARGET_ESP32S2
#pragma message("ESP32S2")
#define LED_PIN 33

#else
#pragma message("ESP32")
#define LED_PIN 21

#endif
#else
#error "Unknown board"
#define LED_PIN -1

#endif


// init adafruits neo pixel
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel ledController = Adafruit_NeoPixel(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800);
#define DEF_COLOR 50
static const uint32_t  COLORS[] = { ledController.Color(150, 0, 0), // red
                                    ledController.Color(0, DEF_COLOR, 0), // green
                                    ledController.Color(0, 0, DEF_COLOR), // blue
                                    ledController.Color(DEF_COLOR, DEF_COLOR, 0), // Yellow
                                    ledController.Color(0, DEF_COLOR, DEF_COLOR), // Cyan
                                    ledController.Color(DEF_COLOR, 0, DEF_COLOR)
                                  }; // magenta

uint8_t COLOR_COUNT = 6;

void setup() {
  Serial.begin(115200);
  ledController.begin();
  Serial.println(F("Started"));
}



void loop() {
  ledController.clear(); // Set all pixel colors to 'off'
  delay(500);


  // set all pixels after another
  for (int j = 0; j < COLOR_COUNT; j++) { // For each pixel...

    // set color of single pixel
    ledController.setPixelColor(0, COLORS[j]);
    ledController.show();   // Send the updated pixel colors to the hardware.

    delay(500);
  }


}

Problems

—

Conclusion

Ja, man kann mit einer RGB LED spielen, aber das 8-fach LED-Shield ist interessanter.

More posts

Other Shields

More ESPs

Sources

Sources for the Shield

Manufacturer's websiteLink status: OK

Sources for the boards

Manufacturer's websiteLink status: OK

SchematicLink status: OK

CH340 USB DriverLink status: OK

https://arduino-projekte.info/wemos-d1-mini/Link status: OK

https://www.exp-tech.de/plattformen/esp8266/entwicklungsboards/8898/wemos-d1-miniLink status: Broken

DateChangeAuthor
15.10.2026Beispielcode als Code-Block eingefügt (Einbettung über gist-it.appspot.com funktionierte nicht mehr)Suffocation
08.10.2026Überschriften-Hierarchie korrigiert (H1→H2, Unterebenen eine Stufe tiefer)Suffocation
03.10.2026Rechtschreibung korrigiert: Tippfehler, Groß-/Kleinschreibung, Kommas
Log-Liste eingefügt
Suffocation
14.05.2022Post createdSuffocation
Changelog

Leave a Reply

Your email address will not be published. Required fields are marked *