Got this piece of script (and some above, but there is no problem there...)
All running on a Yun rev 2. All works like a charm.
Code: Select all
void loop() {
// Initialize the client library
HttpClient client;
HttpClient client2;
// Make a HTTP request:
client.get("http://www.fake.nl/t/1.txt");
client2.get("http://www.fake.nl/t/2.txt");
// if there are incoming bytes available
// from the server, read them and print them:
while (client.available()) {
const char *t = client.read();
const char *b = client2.read();
dmd.clearScreen( true );
dmd.selectFont(MyGraphicsFont);
dmd.drawChar( 0, 0, (t), GRAPHICS_NORMAL );
dmd.drawChar( 0, 16, (b), GRAPHICS_NORMAL );
delay( 5000 );
dmd.clearScreen( true );
dmd.selectFont(System5x7);
dmd.drawString( 0, 0, (t), 3, GRAPHICS_NORMAL );
dmd.drawString( 0, 16, (b), 3, GRAPHICS_NORMAL );
delay( 5000 );
}
}
Code: Select all
dmd.clearScreen( true );
dmd.selectFont(System5x7);
dmd.drawChar( 0, 0, (t), GRAPHICS_NORMAL );
dmd.drawChar( 0, 16, (b), GRAPHICS_NORMAL );
delay( 5000 );
Code: Select all
dmd.clearScreen( true );
dmd.selectFont(System5x7);
dmd.drawString( 0, 0, (t), 3, GRAPHICS_NORMAL );
dmd.drawString( 0, 16, (b), 3, GRAPHICS_NORMAL );
delay( 5000 );
It also doesn't work in the marquee...
Thanks!