Demo of using the LCD of the application board

Dependencies:   C12832 mbed

Fork of app-board-LCD by Chris Styles

Committer:
faif
Date:
Sat Mar 04 23:04:23 2017 +0000
Revision:
4:69913788ef01
first LCD demo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
faif 4:69913788ef01 1 #include "mbed.h"
faif 4:69913788ef01 2 #include "C12832.h"
faif 4:69913788ef01 3
faif 4:69913788ef01 4 C12832 lcd(p5, p7, p6, p8, p11);
faif 4:69913788ef01 5 static const float delay = 1;
faif 4:69913788ef01 6
faif 4:69913788ef01 7 int main()
faif 4:69913788ef01 8 {
faif 4:69913788ef01 9 int counter = 0;
faif 4:69913788ef01 10 lcd.cls();
faif 4:69913788ef01 11 lcd.printf("hello world!");
faif 4:69913788ef01 12
faif 4:69913788ef01 13 while (true)
faif 4:69913788ef01 14 {
faif 4:69913788ef01 15 lcd.locate(0, 15);
faif 4:69913788ef01 16 lcd.printf("counter is: %d", ++counter);
faif 4:69913788ef01 17 wait(delay);
faif 4:69913788ef01 18 }
faif 4:69913788ef01 19 }