Kazuki Yamamoto
/
mbed_3pinLCD
HD44780 LCD driving sample (requires HC595 logic IC)
main.cpp
- Committer:
- k4zuki
- Date:
- 2014-06-20
- Revision:
- 0:2ee19b4827cd
File content as of revision 0:2ee19b4827cd:
#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()); } }