![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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:
- 6:3dcecef3aa21
- Parent:
- 5:d63f1c2d8027
- Child:
- 7:3b3317e5f14e
--- a/main.cpp Fri Apr 01 04:27:40 2016 +0000 +++ b/main.cpp Tue Nov 22 02:05:59 2016 +0000 @@ -1,7 +1,7 @@ //------------------------------------------------------------ // Test program for LCD AQM1602XA-RN-GBW using I2C interface // Pullup resistors for SDA and SCL: 10 kΩ -// 2016/04/01, Copyright (c) 2016 MIKAMI, Naoki +// 2016/11/22, Copyright (c) 2016 MIKAMI, Naoki //------------------------------------------------------------ #include "AQM1602.hpp" @@ -64,8 +64,8 @@ int main() { - if (lcd_.IsConnected()) printf("\r\nConnected"); - else printf("\r\nDisconnected"); + if (lcd_.IsConnected()) printf("\r\nConnected\r\n"); + else printf("\r\nDisconnected\r\n"); lcd_.Clear(); lcd_.WriteString("Hello!");