SSC2B16DLYY,QC1602A and I2C module from mjkdz china (QC1602A needs a bridge from Vdd to right side of R8 to light up with this board)
Revision 0:432b493b6981, committed 2015-05-20
- Comitter:
- kizosgr
- Date:
- Wed May 20 15:05:33 2015 +0000
- Commit message:
- test OK with 1602 & mjkdz I2C module
Changed in this revision
diff -r 000000000000 -r 432b493b6981 TextLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Wed May 20 15:05:33 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/wim/code/TextLCD/#cbe275b0b647
diff -r 000000000000 -r 432b493b6981 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed May 20 15:05:33 2015 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "TextLCD.h" + + I2C i2c_lcd(P0_5,P0_4); // SDA, SCL I2C Communication + +// with SSC2B16DLYY and I2C module from mjkdz china +// with QC1602A (need a bridge from Vdd to right side of R8)and I2C module from mjkdz china + + +TextLCD_I2C lcd(&i2c_lcd, 0x40, TextLCD::LCD16x2); // I2C bus, PCF8574 Slaveaddress, LCD Type + +int main() { + + + lcd.cls(); + lcd.printf("1234567890123456"); + lcd.locate(0, 1); + lcd.printf("6665432109876533"); + + + } \ No newline at end of file
diff -r 000000000000 -r 432b493b6981 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed May 20 15:05:33 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/dbbf35b96557 \ No newline at end of file