Daichi Arai / Mbed 2 deprecated AQM1602_NITK

Dependencies:   mbed AQM1602_simple

Files at this revision

API Documentation at this revision

Comitter:
DaichiArai
Date:
Tue Mar 05 05:07:36 2019 +0000
Commit message:
If you want to use AQM1602. Use this program

Changed in this revision

AQM1602_simple.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 4b9972af0152 AQM1602_simple.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/AQM1602_simple.lib	Tue Mar 05 05:07:36 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/DaichiArai/code/AQM1602_simple/#7eb6902c8e9c
diff -r 000000000000 -r 4b9972af0152 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Mar 05 05:07:36 2019 +0000
@@ -0,0 +1,24 @@
+//mbed(stm32l432kc)で"Hello,world!"を表示させるプログラム
+
+#include "mbed.h"
+#include "LCD.h"
+
+I2C i2c(D4,D5);
+lcd L(i2c);
+
+int main() {
+    //setup()を必ず1回入れる
+    L.setup();
+    L.print("Hello,world!");        //1段目1文字目に表示
+    L.print("NITK.K Robocon",1,2);  //2段目と3文字目に表示
+    wait(1);
+    L.clear(0,1);                   //2段目を消去
+    wait(1);
+    L.clear(1,0);                   //1段目を消去
+    wait(1);
+    L.print("Hello,world!",0,0);
+    L.set_cursor(1,0);
+    L.print("NITK.K Robocon");
+    wait(1);
+    L.clear();                      //全消去
+}
diff -r 000000000000 -r 4b9972af0152 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Mar 05 05:07:36 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/a7c7b631e539
\ No newline at end of file