Working, converted test code for working Arduino-compatible LCD shield with the configuration of "LiquidCrystal lcd(12, 11, 10, 9, 8, 7)". All it says, is my name and the board ID. It's a 'proof-of-concept' project showing my LCD shield works without any hardware changes.
Fork of TextLCD_HelloWorld by
Revision 1:b0cd3a071aac, committed 2013-07-18
- Comitter:
- kuyamarc
- Date:
- Thu Jul 18 02:38:27 2013 +0000
- Parent:
- 0:66332c315595
- Commit message:
- Working with Arduino-compatible LCD Shield.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 66332c315595 -r b0cd3a071aac main.cpp --- a/main.cpp Tue Nov 16 12:45:03 2010 +0000 +++ b/main.cpp Thu Jul 18 02:38:27 2013 +0000 @@ -1,8 +1,10 @@ #include "mbed.h" #include "TextLCD.h" -TextLCD lcd(p10, p12, p15, p16, p17, p18); // rs, e, d0-d3 +TextLCD lcd(PTC9, PTA13, PTD5, PTD0, PTD2, PTD3); // rs, e, d0-d3 int main() { - lcd.printf("Hello World!\n"); + lcd.printf("Marcos Miranda's\n"); + lcd.locate(0, 1); + lcd.printf(" FRDM-KL25Z "); }
diff -r 66332c315595 -r b0cd3a071aac mbed.bld --- a/mbed.bld Tue Nov 16 12:45:03 2010 +0000 +++ b/mbed.bld Thu Jul 18 02:38:27 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/e6be4cd80aad +http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17 \ No newline at end of file