Hello,
I am trying to get my 32x16 red matrix display to read text sent from serial and display it in text form however it just displays numbers.
#include <SPI.h>
#include <DMD2.h>
#include <fonts/SystemFont5x7.h>
#include <fonts/Droid_Sans_12.h>
// Set Width to the number of displays wide you have
const int WIDTH = 1;
// You can change to a smaller font (two lines) by commenting this line,
// and uncommenting the line after it:
const uint8_t *FONT = Droid_Sans_12;
//const uint8_t *FONT = SystemFont5x7;
;
SoftDMD dmd(WIDTH,1); // 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();
Serial.write("Ready");
}
// the loop routine runs over and over again forever:
void loop() {
// when characters arrive over the serial port...
if (Serial.available()) {
// wait a bit for the entire message to arrive
delay(100);
// clear the screen
dmd.clearScreen();
// read all the available characters
while (Serial.available() > 0) {
// display each character to the LCD
box.print(Serial.read());
}
}
}
Above is my code. If anyone would be able to provide a solution that would be great.
Cheers, Dmk