秋月電子 I2C接続キャラクタLCDモジュール用にI2CLCDライブラリを修正しました。 Modified I2CLCD Lib for ACM1602NI character LCD module. http://akizukidenshi.com/catalog/g/gP-05693/
Diff: main.cpp
- Revision:
- 0:9bf010140a3f
diff -r 000000000000 -r 9bf010140a3f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Oct 20 03:44:57 2013 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +#include "I2cLCD.h" +I2cLCD lcd(p28, p27); // sda scl + +int main() { + lcd.locate(0,0); + lcd.printf("I2C_LCD"); + lcd.locate(0,1); + lcd.printf("ABCdefghij"); + + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}