I2C 接続の LCD AQM1602XA-RN-GBW 用のライブラリの使用例. Demo program of library for LCD 1602XA-RN-GBW connected using I2C interface.

Dependencies:   mbed UIT_AQM1602

Revision:
1:6c838e71e330
Parent:
0:e1b05c7eb023
Child:
2:6e609a28fa80
--- a/main.cpp	Fri Jun 05 06:45:13 2015 +0000
+++ b/main.cpp	Tue Jun 09 09:30:52 2015 +0000
@@ -1,11 +1,12 @@
 //------------------------------------------------------------
 // Test program for LCD AQM1602XA-RN-GBW using I2C interface
 //      Pullup resistors for SDA and SCL: 10 kΩ
-// 2015/05/30, Copyright (c) 2015 MIKAMI, Naoki
+// 2015/06/09, Copyright (c) 2015 MIKAMI, Naoki
 //------------------------------------------------------------
 
 #include "mbed.h"
 #include "AQM1602.hpp"
+
 using namespace Mikami;
 
 Aqm1602 lcd_;                                  // Default, OK
@@ -30,8 +31,10 @@
 
 void WaitButton()
 {
+    lcd_.WriteStringXY("Push blue button", 0, 1);
     while (uButton_ == 1) {}
-    wait(0.2);
+    lcd_.ClearLine(1);
+    wait(0.5);
 }
 
 int main()
@@ -43,7 +46,8 @@
     WaitButton();   // Waiting, push blue user button
     lcd_.ClearLine(0);
     WaitButton();   // Waiting, push blue user button
-    lcd_.WriteStringXY("AQM1602XA-RN-GBW", 0, 0);
+    string str = "AQM1602";
+    lcd_.WriteStringXY(str+"XA-RN-GBW", 0, 0);
     TimerIsr();
     timer_.attach(&TimerIsr, 1);