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 app-board-LCD by
Revision 4:1c76cb543f04, committed 2014-10-30
- Comitter:
- shiyilei
- Date:
- Thu Oct 30 16:52:20 2014 +0000
- Parent:
- 3:2db94ee076ee
- Commit message:
- Desvription: draw a circle and; wrtie characters on the screen
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2db94ee076ee -r 1c76cb543f04 main.cpp --- a/main.cpp Wed Feb 05 15:32:38 2014 +0000 +++ b/main.cpp Thu Oct 30 16:52:20 2014 +0000 @@ -1,7 +1,14 @@ +/**************************************** +*file :LCD demo +*Creator :JacobShi +*Time:2014/10/30 +*Desvription: draw a circle and +* wrtie characters on the screen +********************************** */ + + #include "mbed.h" #include "C12832.h" - - C12832 lcd(p5, p7, p6, p8, p11); int main() @@ -9,12 +16,11 @@ int j=0; lcd.cls(); lcd.locate(0,3); - lcd.printf("mbed application board!"); + lcd.printf("This is the mbed LCD"); + lcd.circle(30,20,10,1); while(true) { // this is the third thread - lcd.locate(0,15); - lcd.printf("Counting : %d",j); - j++; - wait(1.0); + + } }