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.
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: speech.cpp
- Revision:
- 2:06c63d567719
- Parent:
- 0:35660d7952f7
diff -r 399033d39feb -r 06c63d567719 speech.cpp
--- 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)