flapping wing
/
Nucleo_TextLCD_sample
TextLCD demo for Nucleo F303K8
Revision 0:671361c6a2ce, committed 2016-09-23
- Comitter:
- flappingwing
- Date:
- Fri Sep 23 07:24:02 2016 +0000
- Commit message:
- TextLCD demo for Nucleo F303K8
Changed in this revision
diff -r 000000000000 -r 671361c6a2ce TextLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Fri Sep 23 07:24:02 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#308d188a2d3a
diff -r 000000000000 -r 671361c6a2ce main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Sep 23 07:24:02 2016 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +#include "TextLCD.h" + +TextLCD g_lcd(D7, D8, D9, D10, D11, D12); // RS, E, DB4, DB5, DB6, DB7 + +int main() { + g_lcd.cls(); + g_lcd.locate(0, 0); + g_lcd.printf( "Hello!"); + + int iCounter = 0; + while(1) { + g_lcd.locate(0, 1); + g_lcd.printf( "%d", iCounter ); + iCounter++; + wait(1.0); + } +} +
diff -r 000000000000 -r 671361c6a2ce mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Sep 23 07:24:02 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/abea610beb85 \ No newline at end of file