D1 Mini Shield – Matrix LED Shield

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

Eine 8X8 LED Matrix in Rot.

For the D1 mini ESP8266 and ESP32, go here:

Facts

  • 8X8 LED Matrix (ein Feld)
  • Daten- und Taktleitungen sind fix und können nicht über Lötbrücken eingestellt werden
DescriptionNameGPIO
TactCLK14
DataDIND7

SchematicLink status: OK

Compatibility

D1 TypeCompatibleBegründung, wenn nicht
D1 miniYes
D1 mini ProYesUntested
D1 mini LiteYesUntested
D1 32YesEvtl. D5 und D7 definieren, siehe Probleme


S2 mini
YesUntested
C3YesUntested
Kompatibilität zu den D1 Boards

Areas of application

  • Display of simple information
  • Demos like smileys

Views

Programming

Libraries

Ich habe die Bibliothek der D1-Hilfeseite verwendet und die .h und .cpp Datei in das Projektverzeichnis kopiert.

https://github.com/wemos/WEMOS_Matrix_LED_Shield_Arduino_LibraryLink status: OK

Arduino ESP32 Library V2.0.2

Arduino ESP8266 Bibliothek V3.0.2

Test programme

Ich habe mal ein eigenes Programm geschrieben, es sind aber auch zwei auf der Hilfeseite des Herstellers verfügbar.

Source code JustSmile.ino (GitHubLink status: OK)

/** Example show dot from WEMOS for D1 Mini with LED 8x8 Matrix shield
 *  
 *  Initial example from:
 *  https://github.com/wemos/WEMOS_Matrix_LED_Shield_Arduino_Library
 *  
 *  Libraries:
 *  https://github.com/wemos/WEMOS_Matrix_LED_Shield_Arduino_Library
 *  
 *  Changed by 
 *  S. Fambach
 *  
 *  Visit https://www.fambach.net if you want
 */

#include "WEMOS_Matrix_LED.h"

MLED mled(5); //set intensity=5
#define ROW 8
#define COL 8
#define SWITCH_DELAY 1000

void setup() {
  // put your setup code here, to run once:

  
}

void clear(){
  for(int y=0;y<ROW;y++)
  {
    for(int x=0;x<COL;x++)
    {
        mled.dot(x,y,0);//clear dot
    
    } 
  }
  mled.display(); 
}

void drawEyes(boolean winkL, boolean winkR){

  // left eye
  mled.dot(1,6, winkL ? 0:1 );
  mled.dot(2,6, winkL ? 0:1 );
  
  mled.dot(1,5);
  mled.dot(2,5);

  //right eye
  mled.dot(5,6, winkR ? 0:1);
  mled.dot(5,5);
  mled.dot(6,6, winkR ? 0:1);
  mled.dot(6,5);
  
}
void drawHappyMouth(){

  // mouth
  mled.dot(1,2);
  mled.dot(2,1);
  mled.dot(3,1);
  mled.dot(4,1);
  mled.dot(5,1);
  mled.dot(6,2);

}

void drawAngryMouth(){
  
  // mouth
  mled.dot(1,1);
  mled.dot(2,2);
  mled.dot(3,2);
  mled.dot(4,2);
  mled.dot(5,2);
  mled.dot(6,1);

  
}

void pixelIt(){
  for(int y=0;y<8;y++)
  {
    for(int x=0;x<8;x++)
    {
        mled.dot(x,y); // draw dot
        mled.display();
        delay(200);
        mled.dot(x,y,0);//clear dot
        mled.display();
        delay(200);        
    }  
  }
  
}


void loop() {

  clear();
  // smile with open eyes
  drawEyes(false,false);
  drawHappyMouth();
  mled.display();
  delay(SWITCH_DELAY);

  // wink left
  drawEyes(true,false);
  mled.display();
  delay(SWITCH_DELAY);

  // wink right
  drawEyes(false,true);
  mled.display();
  delay(SWITCH_DELAY);

  // close eyes
  drawEyes(true,true);
  mled.display();
  delay(SWITCH_DELAY);

  //look angry
  clear();
  drawEyes(false,false);
  drawAngryMouth();
  mled.display();
  delay(SWITCH_DELAY);

}

Problems

Pins D7 and D5 unknown

Beim Kompilieren für den D1 ESP32 hatte ich das Problem, dass die Ports für D nicht definiert sind. Ich habe diese kurzerhand in der Headerdatei der Wemos Bibliothek definiert.

Conclusion

Nette Spielerei und einfacher Einstieg in LED-Matrizen.

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
04.10.2026Rechtschreibung korrigiert: Tippfehler, Groß-/Kleinschreibung, KommasSuffocation
03.10.2026Log-Liste eingefügtSuffocation
08.04.2022Post createdSuffocation
Changelog

Leave a Reply

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