Suga koubou
/
i2clcd_lib
character LCD module to I2C adapter
main.cpp
- Committer:
- okini3939
- Date:
- 2011-02-27
- Revision:
- 2:7b7c6e7dfb47
- Parent:
- 1:16e014cddf29
File content as of revision 2:7b7c6e7dfb47:
#include "mbed.h" #include "I2CLCD.h" I2C i2c(p9, p10); I2CLCD i2clcd(i2c, I2CLCD_ADDR); /* DigitalOut pullup1(p19); DigitalOut pullup2(p20); */ //I2CLCD i2clcd(p9, p10); DigitalOut myled(LED1); int main() { int i = 1; // pullup1 = pullup2 = 1; myled = 1; i2clcd.putc('0' + i); i2clcd.putc('A' + i); i2clcd.putc('a' + i); i2clcd.printf("123456789abcdefghikjlmn"); myled = 0; for (;;); }