Héctor Segnorile / Mbed 2 deprecated frdm_ledRGB

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
segnoh
Date:
Mon Aug 10 00:13:19 2015 +0000
Parent:
0:55150494d6db
Commit message:
Switch ON/OFF the RGB leds

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);