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.
main.cpp
- Committer:
- fblanc
- Date:
- 2011-07-06
- Revision:
- 0:2052f61477b1
File content as of revision 0:2052f61477b1:
#include "mbed.h" #include "SPLC501C.h" #include "graphic.h" int main() { GLCD_Initialize(); //init wait(0.1); GLCD_ClearScreen(); //clear char str[10]="Bonjour"; str[9]=0; GLCD_GoTo(10,0); // GLCD_WriteString10x16(str); //print font 10x16 GLCD_GoTo(10,3); GLCD_WriteString5x7(str); //print font 5x7 unsigned char i=0; unsigned char r=5; while (1) { GLCD_GoTo(10,6); sprintf(str,"%d ",i++); GLCD_WriteString10x16(str); for(char j=0;j<5;j++) { GLCD_Circle(64, 30 ,r+j,1); GLCD_Circle(64, 30 ,r-j,0); } r+=5; wait(0.5); if (r>25) { GLCD_ClearScreen(); r=5; } } }