HW
Fork of TextLCD by
Revision 9:3a05879a6c08, committed 2015-09-22
- Comitter:
- timtianyang
- Date:
- Tue Sep 22 04:43:00 2015 +0000
- Parent:
- 6:e4cb7ddee0d3
- Commit message:
- HW initial upload
Changed in this revision
Display.cpp | Show annotated file Show diff for this revision Revisions of this file |
Display.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r e4cb7ddee0d3 -r 3a05879a6c08 Display.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Display.cpp Tue Sep 22 04:43:00 2015 +0000 @@ -0,0 +1,9 @@ +#include "Display.h" +void Display::LCDEat(int pos){ + lcd.locate(pos,1); + lcd.putc(pos+49); +} +void Display::LCDDoneEating(int pos){ + lcd.locate(pos,1); + lcd.putc('_'); +}
diff -r e4cb7ddee0d3 -r 3a05879a6c08 Display.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Display.h Tue Sep 22 04:43:00 2015 +0000 @@ -0,0 +1,13 @@ +#ifndef TEXTLCD_H +#define TEXTLCD_H +#include "TextLCD.h" +class Display { +public: + void LCDEat(int pos); + void LCDDoneEating(int pos); + TextLCD lcd; + Display(void): lcd(p15, p16, p17, p18, p19, p20){ + lcd.printf("Dinning Phi Prob"); + lcd.printf("_____"); } +}; +#endif \ No newline at end of file