Suga koubou
/
PCF2119_hello
sample for PCF2119 library
Revision 0:2046e5bfc62d, committed 2014-12-25
- Comitter:
- okini3939
- Date:
- Thu Dec 25 15:28:38 2014 +0000
- Commit message:
- 1st build;
Changed in this revision
diff -r 000000000000 -r 2046e5bfc62d PCF2119.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PCF2119.lib Thu Dec 25 15:28:38 2014 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/okini3939/code/PCF2119/#27f430d086f3
diff -r 000000000000 -r 2046e5bfc62d main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Dec 25 15:28:38 2014 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "PCF2119.h" + +DigitalOut myled(LED1); + +I2C i2c(p9, p10); +PCF2119 lcd(i2c, p11); +//PCF2119 lcd(p9, p10, p11); + +int main() { + int i = 0; + + lcd.cls(); + lcd.printf("Hello World"); + + while(1) { + lcd.locate(0, 1); + lcd.printf("%d", i); + i ++; + myled = !myled; + wait(0.5); + } +}
diff -r 000000000000 -r 2046e5bfc62d mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Dec 25 15:28:38 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file