hi, i have tried to use DMD libraries for displaying data predefined on P10 LED module.
Works fine.
Now i need someone help to suggest how to display data received on Rx terminal to be displayed.
below is code i used:
#include <SPI.h>
#include <DMD2.h>
#include <fonts/SystemFont5x7.h>
#include <fonts/Arial14.h>
#include <fonts/Droid_Sans_12.h>
// Set Width to the number of displays wide you have
const int WIDTH = 4;
// 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 = Droid_Sans_12;
const uint8_t *FONT = SystemFont5x7;
const char *MESSAGE = "FLAMBERGE TESTING -1";
//SoftDMD dmd(WIDTH,2,1); // DMD controls the entire display
SoftDMD dmd(2,1); // DMD controls the entire display
DMD_TextBox box(dmd,2,1,64,32); // "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++;
}
}
Can some one guide me to write program