aqm1602(i2cLCD)

Dependencies:   AQM1602 mbed

Revision:
0:b8a9d27b0a92
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 20 07:13:05 2016 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "AQM1602.h"
+
+I2C i2c(I2C_SDA, I2C_SCL);//sda,scl
+AQM1602 lcd(i2c);
+
+int main()
+{
+    lcd.init();
+    int iter= 0;
+    while(true) {
+        lcd.printf("iter: %5.5d.\r\n", iter);
+        wait(1.0f);
+        if(iter%10 == 0)    // 10s
+            lcd.clear();
+        iter++;
+    }
+}
\ No newline at end of file