Josh Chen
/
Nucleo_printf
just test only
Revision 1:9bdf91a6bf64, committed 2014-11-24
- Comitter:
- joshchen
- Date:
- Mon Nov 24 06:24:25 2014 +0000
- Parent:
- 0:b0921be5eb9d
- Commit message:
- change LED1 to LED4 (it's the same)
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b0921be5eb9d -r 9bdf91a6bf64 main.cpp --- a/main.cpp Mon Nov 24 06:17:56 2014 +0000 +++ b/main.cpp Mon Nov 24 06:24:25 2014 +0000 @@ -7,14 +7,14 @@ Serial pc(SERIAL_TX, SERIAL_RX); -DigitalOut myled(LED1); +DigitalOut myled(LED4); int main() { int i = 1; pc.printf("Hello World !\n"); while(1) { + pc.printf("This program runs since %d seconds.\n", i++); wait(1); - pc.printf("This program runs since %d seconds.\n", i++); myled = !myled; } }