Obrigado pela ajuda!
Funcionou assim:
...
char message[21] = "Inicial message"; // The extra character is for the null
int charsRead;void setup(){
m.init(); // module initialize
m.setIntensity(0); // dot matix intensity 0-15
Serial.begin(9600); // serial communication initialize
}void loop(){
// this is the code if you want to entering a message via serial console
while (Serial.available() > 0){
charsRead = Serial.readBytesUntil('\n', message, 20);
message[charsRead] = '\0';
}
delay(100);
m.shiftLeft(false, true);printStringWithShift(message, 100);
...