Shields
/
mbed_Shield_LCD
Example program with the LCD display of the mbed application shield.
Revision 0:4249e647c629, committed 2014-03-17
- Comitter:
- screamer
- Date:
- Mon Mar 17 19:13:12 2014 +0000
- Child:
- 1:c6c45854ee0a
- Commit message:
- Initial revision
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832.lib Mon Mar 17 19:13:12 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/chris/code/C12832/#7de323fa46fe
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 17 19:13:12 2014 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" +#include "C12832.h" + +C12832 lcd(D11, D13, D12, D7, D10); + +int main() +{ + // clear the screen + lcd.cls(); + + // print the first line and wait 3 sec + lcd.locate(0,3); + lcd.printf("mbed application board!"); + + // print the counter prefix; the number will be printed in the while loop + lcd.locate(0,15); + lcd.printf("Counting:"); + + int i=1; + while(i++) { + lcd.locate(42,15); + lcd.printf("%d", i); + wait(0.01); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 17 19:13:12 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file