秋月電子 I2C接続キャラクタLCDモジュール用にI2CLCDライブラリを修正しました。 Modified I2CLCD Lib for ACM1602NI character LCD module. http://akizukidenshi.com/catalog/g/gP-05693/

Dependencies:   mbed

Committer:
maro
Date:
Sun Oct 20 03:44:57 2013 +0000
Revision:
0:9bf010140a3f
Changed the waiting time of writeCommand and writeData

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maro 0:9bf010140a3f 1 #include "mbed.h"
maro 0:9bf010140a3f 2
maro 0:9bf010140a3f 3 DigitalOut myled(LED1);
maro 0:9bf010140a3f 4 #include "I2cLCD.h"
maro 0:9bf010140a3f 5 I2cLCD lcd(p28, p27); // sda scl
maro 0:9bf010140a3f 6
maro 0:9bf010140a3f 7 int main() {
maro 0:9bf010140a3f 8 lcd.locate(0,0);
maro 0:9bf010140a3f 9 lcd.printf("I2C_LCD");
maro 0:9bf010140a3f 10 lcd.locate(0,1);
maro 0:9bf010140a3f 11 lcd.printf("ABCdefghij");
maro 0:9bf010140a3f 12
maro 0:9bf010140a3f 13 while(1) {
maro 0:9bf010140a3f 14 myled = 1;
maro 0:9bf010140a3f 15 wait(0.2);
maro 0:9bf010140a3f 16 myled = 0;
maro 0:9bf010140a3f 17 wait(0.2);
maro 0:9bf010140a3f 18 }
maro 0:9bf010140a3f 19 }