Trung Nguyen / Mbed 2 deprecated FINAL_PROJECT_4180

Dependencies:   mbed

Fork of FINAL_PROJECT_4180 by Gedeon Nyengele

Files at this revision

API Documentation at this revision

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

4DGL-uLCD-SE.lib Show annotated file Show diff for this revision Revisions of this file
lib.cpp Show annotated file Show diff for this revision Revisions of this file
lib.h Show annotated file Show diff for this revision Revisions of this file
--- /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