BRANDON GARCIA
/
LCD_HelloMicroWorld_Test
Easiest Hello World example!
Revision 1:48d03321546d, committed 2020-12-22
- Comitter:
- brandongarcia
- Date:
- Tue Dec 22 04:41:54 2020 +0000
- Parent:
- 0:86dc1c78a40c
- Commit message:
- BGR
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 86dc1c78a40c -r 48d03321546d main.cpp --- a/main.cpp Sun Dec 20 01:56:40 2020 +0000 +++ b/main.cpp Tue Dec 22 04:41:54 2020 +0000 @@ -1,12 +1,13 @@ #include "mbed.h" #include "TextLCD.h" DigitalOut myled(LED1); -TextLCD ark(PA_0,PA_1,PA_4,PB_0,PC_1,PC_0); +TextLCD ark(PA_0,PA_1,PA_4,PB_0,PC_1,PC_0);// rs, e, d4-d7 + int main() { - ark.printf("HELLO MICRO WORLD"); + ark.printf("HELLO MICRO WORLD");//Introduce the text here float i=0.0; - while(1) { + while(1) { //This while is just a clock counter ark.locate(0,1); ark.printf("%f",i); i=i+0.5;