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:
- 11:1d7021c0739d
- Parent:
- 10:c3556e27e576
- Child:
- 12:5cb9ffad1ad7
--- a/lib.cpp Mon Apr 25 01:57:10 2016 +0000
+++ b/lib.cpp Mon Apr 25 02:38:50 2016 +0000
@@ -194,6 +194,17 @@
lcd->text_string(text, 1, 4, FONT_7X8, BLUE);
}
+void greeting(uLCD_4DGL *lcd)
+{
+ lcd->baudrate(3000000);
+ lcd->cls();
+ lcd->textbackground_color(WHITE);
+ lcd->text_mode(OPAQUE);
+ lcd->text_width(4);
+ lcd->text_height(4);
+ lcd->text_string("Enter 4-digit PIN: ", 1, 4, FONT_7X8, BLUE);
+}
+
int id_to_int(char *user_id, int size)
{
int val = 0;
@@ -219,3 +230,14 @@
}
return false;
}
+
+int read_keypad()
+{
+ return 0;
+}
+
+bool get_user_id(char *user_id)
+{
+ return true;
+}
+