液晶モジュールのサンプルプログラム

Dependencies:   mbed AQM0802

Revision:
0:158e4900a691
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jul 29 05:24:06 2019 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "AQM0802.h"    
+
+I2C i2c(I2C_SDA,I2C_SCL);   //sda,scl
+AQM0802 lcd(i2c);
+
+int main(void){
+    lcd.init(); //LCD初期化
+    lcd.locate(1,0);    //表示位置を1行1桁にする
+    lcd.print("Hello"); //helloの表示
+}
\ No newline at end of file