Randall Kliman / Mbed 2 deprecated NEOPUNK

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Revision:
2:06c63d567719
Parent:
0:35660d7952f7
--- a/speech.cpp	Wed Apr 04 21:11:07 2018 +0000
+++ b/speech.cpp	Fri Nov 30 02:53:05 2018 +0000
@@ -29,18 +29,25 @@
 
 void draw_speech_bubble()
 {
+    uLCD.line(0, 93, 128, 93, 0xff00e5);
+    uLCD.line(0, 94, 128, 94, 0xff00e5);
+    uLCD.filled_rectangle(0,95,127, 117,0x000000);
 }
 
 void erase_speech_bubble()
 {
+    uLCD.filled_rectangle(0,93,127, 117,0x000000);
 }
 
 void draw_speech_line(const char* line, int which)
 {
+    uLCD.locate(0,12+which);
+    uLCD.printf(line);
 }
 
 void speech_bubble_wait()
 {
+    wait(1.5);
 }
 
 void speech(const char* line1, const char* line2)
@@ -49,7 +56,7 @@
     draw_speech_line(line1, TOP);
     draw_speech_line(line2, BOTTOM);
     speech_bubble_wait();
-    erase_speech_bubble();
+    //erase_speech_bubble();
 }
 
 void long_speech(const char* lines[], int n)