Marlowe Noll / Mbed 2 deprecated Minor_test_serial

Dependencies:   MODSERIAL mbed

Fork of Minor_test_serial by First Last

Files at this revision

API Documentation at this revision

Comitter:
JeffreyBrimm
Date:
Mon Sep 12 10:02:56 2016 +0000
Parent:
0:c8f15874531b
Commit message:
added blue led

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Sep 02 14:50:46 2015 +0000
+++ b/main.cpp	Mon Sep 12 10:02:56 2016 +0000
@@ -2,6 +2,7 @@
 #include "MODSERIAL.h"
 
 DigitalOut myled(LED_GREEN);
+DigitalOut bled(LED_BLUE);
 MODSERIAL pc(USBTX, USBRX);
 
 int main()
@@ -15,5 +16,6 @@
         pc.printf("%d \n", i); // print the value of variable i
         i++; // increment the variable
         myled = !myled; // toggle a led
+        bled = !bled; //toggle blue led
     }
 }