Shields
/
mbed_Shield_LCD
Example program with the LCD display of the mbed application shield.
main.cpp
- Committer:
- screamer
- Date:
- 2014-03-17
- Revision:
- 0:4249e647c629
- Child:
- 3:12965b28af04
File content as of revision 0:4249e647c629:
#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); } }