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

Dependencies:   mbed AQM0802

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "AQM0802.h"    
00003 
00004 I2C i2c(I2C_SDA,I2C_SCL);   //sda,scl
00005 AQM0802 lcd(i2c);
00006 
00007 int main(void){
00008     lcd.init(); //LCD初期化
00009     lcd.locate(1,0);    //表示位置を1行1桁にする
00010     lcd.print("Hello"); //helloの表示
00011 }