Professional Documents
Culture Documents
Coding 1
Coding 1
Scrolling alphabet demo, displays characters one at a time into a scrolling box.
*/
#include <SPI.h>
#include <DMD2.h>
#include <fonts/SystemFont5x7.h>
<SoftwareSerial.h>
// You can change to a smaller font (two lines) by commenting this line,
char msg[100];
DMD_TextBox box(dmd); // "box" provides a text box to automatically write to/scroll the display
void setup() {
dmd.setBrightness(400);
dmd.selectFont(FONT2);
dmd.begin();
Serial.println("AT+CNMI=2,2,0,0,0");
delay(2000);
Serial.println("AT+CMGF=1");
delay(2000);
delay(10000);
void loop() {
String ss;
char a;
if (Serial.available()) {
if (Serial.find('*'))
ss = Serial.readStringUntil('*');
// Serial.println(ss);
ss.toCharArray(msg, 100);
// Serial.println(msg);
//Serial.print(msg[i]);
box.print(msg[i]);