I2C 接続の LCD AQM1602XA-RN-GBW 用のライブラリの使用例. Demo program of library for LCD 1602XA-RN-GBW connected using I2C interface.
Dependencies: mbed UIT_AQM1602
Diff: main.cpp
- Revision:
- 3:fe2f8abf2120
- Parent:
- 2:6e609a28fa80
- Child:
- 4:291e82d910d0
diff -r 6e609a28fa80 -r fe2f8abf2120 main.cpp --- a/main.cpp Mon Jul 06 09:15:33 2015 +0000 +++ b/main.cpp Sun Nov 15 11:40:12 2015 +0000 @@ -1,10 +1,9 @@ //------------------------------------------------------------ // Test program for LCD AQM1602XA-RN-GBW using I2C interface // Pullup resistors for SDA and SCL: 10 kΩ -// 2015/06/09, Copyright (c) 2015 MIKAMI, Naoki +// 2015/11/15, Copyright (c) 2015 MIKAMI, Naoki //------------------------------------------------------------ -#include "mbed.h" #include "AQM1602.hpp" using namespace Mikami; @@ -41,6 +40,7 @@ { if (lcd_.IsConnected()) printf("\r\nConnected"); else printf("\r\nDisconnected"); + lcd_.Clear(); lcd_.WriteString("Hello!"); WaitButton(); // Waiting, push blue user button @@ -55,3 +55,4 @@ while (true) {} } +