This LedDisplayModule is not easy to work with since the examples (writing a double and individual chars to the display) don't cover working with string variables. This means that if you -for example- want to the display in a clock, you have to find out by yourself how to put the time variable (for example "19:23") on the display. The mail-adress provided on this Github page is not active anymore and it seems that DFRobot abandonded this product.
After quite some troubles I found out that LED.print needs a referenced pointer instead of a variable. So if you get a four character timestring like "1923" and want to display that you do the following:
char t0,t1,t2,t3;
string timestr = "1923"
to = timestr.charAt(0);
t1 = timestr.charAt(1);
t2 = timestr.charAt(2);
t3 = timestr.charAt(3);
LED.print(&t0,&t1,&t2,&t3);
That way it works...
This LedDisplayModule is not easy to work with since the examples (writing a double and individual chars to the display) don't cover working with string variables. This means that if you -for example- want to the display in a clock, you have to find out by yourself how to put the time variable (for example "19:23") on the display. The mail-adress provided on this Github page is not active anymore and it seems that DFRobot abandonded this product. After quite some troubles I found out that LED.print needs a referenced pointer instead of a variable. So if you get a four character timestring like "1923" and want to display that you do the following: char t0,t1,t2,t3; string timestr = "1923" to = timestr.charAt(0); t1 = timestr.charAt(1); t2 = timestr.charAt(2); t3 = timestr.charAt(3); LED.print(&t0,&t1,&t2,&t3); That way it works...