Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 1:83391eec9fef
- Parent:
- 0:55150494d6db
--- a/main.cpp Mon Aug 10 00:05:27 2015 +0000 +++ b/main.cpp Mon Aug 10 00:13:19 2015 +0000 @@ -5,13 +5,11 @@ DigitalOut led_blue(LED_BLUE); DigitalIn sw2(SW2); DigitalIn sw3(SW3); -Serial pc(USBTX, USBRX); int check_sw2(int choice) { if(sw2 == 0) { - pc.printf("SW2 button pressed. \n"); switch(choice) { case 0: @@ -41,7 +39,6 @@ { if(sw3 == 0) { - pc.printf("SW3 button pressed. \n"); if(led_status) led_blue = 0; else led_blue = 1; } @@ -55,9 +52,6 @@ led_red = 1; led_blue = 1; - pc.baud(115200); - pc.printf("Hello World from FRDM-K64F board.\n"); - while(true) { choice = check_sw2(choice);