![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is sample program for lpclcd. http://strawberry-linux.com/catalog/items?code=12014 lpclcd USBマイコン内蔵I2C液晶モジュール(16x2行)
Dependencies: I2cLCD USBDevice mbed
Revision 0:11aedf11fda0, committed 2013-11-03
- Comitter:
- xshige
- Date:
- Sun Nov 03 14:24:35 2013 +0000
- Commit message:
- this is sample program for lpclcd.; http://strawberry-linux.com/catalog/items?code=12014; lpclcd USB??????I2C???????(16x2?);
Changed in this revision
diff -r 000000000000 -r 11aedf11fda0 I2cLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/I2cLCD.lib Sun Nov 03 14:24:35 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/jksoft/code/I2cLCD/#b3cc6ae3dfd8
diff -r 000000000000 -r 11aedf11fda0 USBDevice.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBDevice.lib Sun Nov 03 14:24:35 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/USBDevice/#d495202c90f4
diff -r 000000000000 -r 11aedf11fda0 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Nov 03 14:24:35 2013 +0000 @@ -0,0 +1,42 @@ +// lpclcd LCD test program +// 2013/11/3 + +#include "mbed.h" +#include "I2cLCD.h" +#include "USBSerial.h" + +//Virtual serial port over USB +USBSerial serial; +// I2C LCD pin assignment +I2cLCD lcd(p28, p27, p29); //sda scl reset + +DigitalOut myled(P1_6); +DigitalOut backlight(P1_3); +DigitalIn usersw(P0_1); + +long cn; + +int main() { + + backlight = 0; + lcd.cls(); + lcd.printf("mbed lpclcd test"); + lcd.locate(0,1); + lcd.printf("LPC11U24"); + + cn = 0; + while(1) { + if (usersw == 1) { + lcd.locate(0,1); + lcd.printf("LPC11U24 %7d",cn++); + } else { + lcd.locate(0,1); + lcd.printf("lpc11u24 %7d",cn++); + }; + serial.printf("Virtual Serial Port: LPC11U24 %7d\r\n",cn); + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}
diff -r 000000000000 -r 11aedf11fda0 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Nov 03 14:24:35 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file