aqm1602(i2cLCD)

Dependencies:   AQM1602 mbed

Files at this revision

API Documentation at this revision

Comitter:
nissin_2411
Date:
Tue Sep 20 07:13:05 2016 +0000
Commit message:
aqm1602

Changed in this revision

AQM1602.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r b8a9d27b0a92 AQM1602.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/AQM1602.lib	Tue Sep 20 07:13:05 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/AkinoriHashimoto/code/AQM1602/#43f874a2b8e9
diff -r 000000000000 -r b8a9d27b0a92 main.cpp
--- /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
diff -r 000000000000 -r b8a9d27b0a92 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Sep 20 07:13:05 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/abea610beb85
\ No newline at end of file