While using DMD2 library with p10 single color display showing error Compilation error: 'SoftDMD' does not name a type

#include <SPI.h>
#include <DMD2.h>
#include <fonts/SystemFont5x7.h>
#include <fonts/Arial14.h>

// Set Width to the number of displays wide you have
const int WIDTH = 5;

// You can change to a smaller font (two lines) by commenting this line,
// and uncommenting the line after it:
const uint8_t *FONT = Arial14;
//const uint8_t *FONT = SystemFont5x7;

const char *MESSAGE = "TESTING";

**> SoftDMD dmd(WIDTH,2);  // DMD controls the entire display**
**> DMD_TextBox box(dmd);  // "box" provides a text box to automatically write to/scroll the display**

// the setup routine runs once when you press reset:
void setup() {
  Serial.begin(9600);
  dmd.setBrightness(255);
  dmd.selectFont(FONT);
  dmd.begin();
}

// the loop routine runs over and over again forever:
void loop() {
  const char *next = MESSAGE;
  while(*next) {
    Serial.print(*next);
    box.print(*next);
    delay(200);
    next++;
  }
}

SoftDMD' does not name a type
20|SoftDMD dmd(WIDTH,2); // DMD controls the entire display even if the folder structure is correct

Welcome to the forum

Which Arduino board are you using ?

I'm using NodeMCU [Esp 8266]

From GitHub - freetronics/DMD2: Beta release of a new Dot Matrix Display Arduino library

ESP8266 Support

Thanks to @h4rm0n1c there is support for DMD2 on ESP8266 using the Arduino environment. See this comment for an explanation of using DMD2 on ESP8266.

Freetronics is unable to guarantee support for DMD2 on ESP8266, but we will try and help if we can.

Follow the link the the quoted text and you will see

SoftDMD is not included, yet, but otherwise this is feature complete. (I've used a preprocessor statement to disable SoftDMD on the ESP8266)

@UKHeliBob Thank you for quick response I've tried by changing SoftDMD to SPIDMD in sketches it works fine for single p10 displays but causes issue when the width is 5 and height is 2 actually it display letter on the first display only after once text is scrolled through all dispay means its working fine for only first time....

I am sorry but I have no experience of the display that you are using or the library so can not offer any more help

1 Like

@nillegion
DMD2 is quite old library.
Use either Adafruit ProtoMatrix, or SmartMatrix, or DMD_STM32 libraries

1 Like

@b707 Sure, I will try the mentioned libraries...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.