Kazuki Yamamoto
/
mbed_3pinLCD
HD44780 LCD driving sample (requires HC595 logic IC)
Diff: main.cpp
- Revision:
- 0:2ee19b4827cd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Jun 20 01:09:21 2014 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" +#include "TriPinLcd.h" + +Timer t; +TriPinLcd lcd(p5,p7,p6);//clk = p7, data = p5, latch = p6 + +int main() +{ + + lcd.begin(16, 2); + lcd.noBlink(); + + lcd.printf("LCD3WIRE mbed"); + t.start(); + while(1) { + lcd.setCursor(0, 1); +// lcd.printf("%.0f", t.read()); + lcd.printf("%d", t.read_us()); + } +}