Desvription: draw a circle and wrtie characters on the screen

Dependencies:   C12832 mbed

Fork of app-board-LCD by Chris Styles

Committer:
shiyilei
Date:
Thu Oct 30 16:52:20 2014 +0000
Revision:
4:1c76cb543f04
Parent:
3:2db94ee076ee
Desvription: draw a circle and;  wrtie characters on the screen

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shiyilei 4:1c76cb543f04 1 /****************************************
shiyilei 4:1c76cb543f04 2 *file :LCD demo
shiyilei 4:1c76cb543f04 3 *Creator :JacobShi
shiyilei 4:1c76cb543f04 4 *Time:2014/10/30
shiyilei 4:1c76cb543f04 5 *Desvription: draw a circle and
shiyilei 4:1c76cb543f04 6 * wrtie characters on the screen
shiyilei 4:1c76cb543f04 7 ********************************** */
shiyilei 4:1c76cb543f04 8
shiyilei 4:1c76cb543f04 9
dreschpe 0:f6a57b843f79 10 #include "mbed.h"
chris 3:2db94ee076ee 11 #include "C12832.h"
chris 3:2db94ee076ee 12 C12832 lcd(p5, p7, p6, p8, p11);
dreschpe 1:1c6a9eaf55b5 13
dreschpe 0:f6a57b843f79 14 int main()
dreschpe 0:f6a57b843f79 15 {
chris 2:a87e255a8f3a 16 int j=0;
chris 2:a87e255a8f3a 17 lcd.cls();
chris 2:a87e255a8f3a 18 lcd.locate(0,3);
shiyilei 4:1c76cb543f04 19 lcd.printf("This is the mbed LCD");
dreschpe 0:f6a57b843f79 20
shiyilei 4:1c76cb543f04 21 lcd.circle(30,20,10,1);
dreschpe 0:f6a57b843f79 22 while(true) { // this is the third thread
shiyilei 4:1c76cb543f04 23
shiyilei 4:1c76cb543f04 24
dreschpe 0:f6a57b843f79 25 }
dreschpe 0:f6a57b843f79 26 }