
LCD
Revision 0:90cc69dbc509, committed 2015-10-15
- Comitter:
- madmonkeyman82
- Date:
- Thu Oct 15 15:57:34 2015 +0000
- Commit message:
- first
Changed in this revision
diff -r 000000000000 -r 90cc69dbc509 LCDLib.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LCDLib.lib Thu Oct 15 15:57:34 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/rlanghbv/code/LCDLib/#241842336d78
diff -r 000000000000 -r 90cc69dbc509 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Oct 15 15:57:34 2015 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" +#include "TextLCD.h" + +TextLCD lcd(D11,D10,D9,D5,D4,D3,D2); + +void BlinkCursor(bool); + +int main() +{ + lcd.gotoxy(1,1); + lcd.printf("Hello"); + + lcd.gotoxy(4,2); + lcd.printf("World"); + + BlinkCursor(0); + + while(1) { + wait_ms(300); + } +} + +void BlinkCursor(bool OnOff) +{ + if(OnOff)lcd.lcdComand(0x0F); + else lcd.lcdComand(0x0C); +} + + +
diff -r 000000000000 -r 90cc69dbc509 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Oct 15 15:57:34 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4f6c30876dfa \ No newline at end of file