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.
Fork of FINAL_PROJECT_4180 by
Revision 8:9b41712fd2c3, committed 2016-04-25
- Comitter:
- nyengele
- Date:
- Mon Apr 25 01:18:04 2016 +0000
- Parent:
- 7:800afb8c4cb5
- Child:
- 9:48e93bcd1d5c
- Commit message:
- lcd stuff done
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/4DGL-uLCD-SE.lib Mon Apr 25 01:18:04 2016 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/4180_1/code/4DGL-uLCD-SE/#e39a44de229a
--- 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);
+}
--- a/lib.h Mon Apr 25 01:03:46 2016 +0000 +++ b/lib.h Mon Apr 25 01:18:04 2016 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" #include "FPScanner.h" +#include "uLCD_4DGL.h" int hashcode(const char *data, int size); void read_mag_card(Serial *device, char *dest, int *size); @@ -9,4 +10,6 @@ bool face_detect(char *user_id, Serial *android); bool speech_detect(char *user_id, Serial *android); bool speech_enroll(char *user_id, Serial *android); -void buzzer(PwmOut *speaker, int seconds); \ No newline at end of file +void buzzer(PwmOut *speaker, int seconds); +void failure_display(uLCD_4DGL *lcd, char *text); +void success_display(uLCD_4DGL *lcd, char *text); \ No newline at end of file
