An ANT Shared Bidirectional Slave sample implementation.

Dependencies:   bc_ant mbed

see http://mbed.org/users/MRSa/notebook/bc-ant_receiver/ .

Files at this revision

API Documentation at this revision

Comitter:
MRSa
Date:
Sun May 26 13:25:39 2013 +0000
Parent:
0:516a9e85a3fb
Child:
2:691ccdef6f1e
Commit message:
add LED

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun May 26 13:14:41 2013 +0000
+++ b/main.cpp	Sun May 26 13:25:39 2013 +0000
@@ -16,6 +16,7 @@
 
 /**  OUTPUT DEVICES  **/
 DigitalOut led0(p21);
+DigitalOut led1(p22);
 
 /**   ANT DEFINES   **/
 #define MAX_BUFSIZE             64
@@ -134,10 +135,12 @@
     while(1)
     {
         myLeds = statusLamp;
-        //led0 = 1;
+        led0 = 1;
+        led1 = 1;
         wait(0.5);
         myLeds = 0;
-        //led0 = 0;
+        led0 = 0;
+        led1 = 0;
         wait(0.5);
     }
 }