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.
Diff: lib.cpp
- Revision:
- 8:9b41712fd2c3
- Parent:
- 7:800afb8c4cb5
- Child:
- 9:48e93bcd1d5c
diff -r 800afb8c4cb5 -r 9b41712fd2c3 lib.cpp
--- a/lib.cpp Mon Apr 25 01:03:46 2016 +0000
+++ b/lib.cpp Mon Apr 25 01:18:04 2016 +0000
@@ -171,3 +171,25 @@
wait(seconds);
*speaker = 0.0;
}
+
+void failure_display(uLCD_4DGL *lcd, char *text)
+{
+ lcd->baudrate(3000000);
+ lcd->cls();
+ lcd->textbackground_color(WHITE);
+ lcd->text_mode(OPAQUE);
+ lcd->text_width(4);
+ lcd->text_height(4);
+ lcd->text_string(text, 1, 4, FONT_7X8, RED);
+}
+
+void success_display(uLCD_4DGL *lcd, char *text)
+{
+ lcd->baudrate(3000000);
+ lcd->cls();
+ lcd->textbackground_color(WHITE);
+ lcd->text_mode(OPAQUE);
+ lcd->text_width(4);
+ lcd->text_height(4);
+ lcd->text_string(text, 1, 4, FONT_7X8, BLUE);
+}