Rob Toulson
/
RealTimeLab05_Display
Real Time Lab Program
Revision 0:b5e206fd1d2c, committed 2015-01-25
- Comitter:
- robt
- Date:
- Sun Jan 25 16:27:59 2015 +0000
- Commit message:
- Real Time Lab Program
Changed in this revision
diff -r 000000000000 -r b5e206fd1d2c C12832_lcd.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832_lcd.lib Sun Jan 25 16:27:59 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/dreschpe/code/C12832_lcd/#8f86576007d6
diff -r 000000000000 -r b5e206fd1d2c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jan 25 16:27:59 2015 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" +#include "C12832_lcd.h" + +C12832_LCD lcd; + +int i=0; + +int main() +{ + + lcd.printf("Hello Colluders!"); + + lcd.locate(0,20); + lcd.printf("Here's a counter: "); + + while(1) { + + lcd.locate(100,20); + i=i+1; + lcd.printf("%3d",i); + wait(0.2); + if (i==999) { + i=0; + } + } +}
diff -r 000000000000 -r b5e206fd1d2c mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Jan 25 16:27:59 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file