Fábio Souza
/
CPBR_KL46Z_EX4
SLCD example on KL46Z board
Revision 0:cc1610c8817f, committed 2017-01-31
- Comitter:
- FBSEletronica
- Date:
- Tue Jan 31 19:13:04 2017 +0000
- Commit message:
- EX4 CPBR
Changed in this revision
diff -r 000000000000 -r cc1610c8817f SLCD.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SLCD.lib Tue Jan 31 19:13:04 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/Sissors/code/SLCD/#ef2b3b7f1b01
diff -r 000000000000 -r cc1610c8817f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jan 31 19:13:04 2017 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +#include "SLCD.h" + +SLCD slcd; + +DigitalOut led(LED_RED); + +int main() +{ + int value = 0; + + + slcd.clear(); + + while (true) { + led = !led; // toggle led + slcd.printf("%04d", value); // print the heading (NED compass) to the LCD + value++; + if(value>1000) value = 0; + wait(0.2f); + } +} \ No newline at end of file
diff -r 000000000000 -r cc1610c8817f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Jan 31 19:13:04 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/ad3be0349dc5 \ No newline at end of file