Wim De Roeve
/
I2CTextLCD_TestProgram
TextLCD with I/O I2C expander
Revision 0:c54cd22b2d9b, committed 2010-12-23
- Comitter:
- Wimpie
- Date:
- Thu Dec 23 13:04:51 2010 +0000
- Commit message:
Changed in this revision
diff -r 000000000000 -r c54cd22b2d9b I2CTextLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/I2CTextLCD.lib Thu Dec 23 13:04:51 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Wimpie/code/I2CTextLCD/#704f87be7993
diff -r 000000000000 -r c54cd22b2d9b main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Dec 23 13:04:51 2010 +0000 @@ -0,0 +1,24 @@ +#include "I2CTextLCD.h" + +I2CTextLCD LCD(p9, p10,0x40); + +int main() { + + while (1) { + for (int i=0;i<8;i++) { + LCD.cls(); + LCD.locate(0,0); + for (int j=0;j<32;j++) { + + LCD.printf("%c", i*32+j); + } + wait(1); + if ((i % 2)==0) + LCD.backlight(true); + else + LCD.backlight(false); + } + + } + +}
diff -r 000000000000 -r c54cd22b2d9b mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Dec 23 13:04:51 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da