Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Adafruit_32x8matrix
Diff: main.cpp
- Revision:
- 7:1bd79d71396a
- Parent:
- 6:8d2eb79a4baf
- Child:
- 8:5f5ceafa826d
--- a/main.cpp Wed Jun 28 19:27:51 2017 +0000
+++ b/main.cpp Wed Jun 28 19:44:15 2017 +0000
@@ -19,10 +19,25 @@
int main() {
char buffer [50];
- sprintf (buffer, "Welcome\0");
Thread::attach_idle_hook(myidlethread);
-
+
+ sprintf(buffer, "This\0");
+ matrix.showText(buffer,strlen(buffer), 1);
+
+ sprintf(buffer, "is\0");
+ matrix.showText(buffer,strlen(buffer), 1);
+
+ sprintf(buffer, "the\0");
+ matrix.showText(buffer,strlen(buffer), 1);
+
+ sprintf (buffer, "IoT Lab\0");
+ matrix.scrollText(buffer,strlen(buffer), 100);
+
+ Thread::wait(1000);
+
+ sprintf(buffer, "Welcome\0");
+
while(1)
{
matrix.scrollText(buffer,strlen(buffer), 80);