AB&T / Mbed 2 deprecated TestEasyCAT_LoopBack

Dependencies:   mbed EasyCAT_lib

Files at this revision

API Documentation at this revision

Comitter:
EasyCAT
Date:
Wed Jan 09 09:42:33 2019 +0000
Parent:
0:739b2b5ca0f6
Commit message:
revision 2 - moved "DigitalOut Led(LED1)"

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Sep 12 17:32:00 2017 +0000
+++ b/main.cpp	Wed Jan 09 09:42:33 2019 +0000
@@ -12,6 +12,10 @@
 //******************************************************************************************** 
 
 
+// revision 2 - moved  "DigitalOut Led(LED1)"
+
+
+
 //---- AB&T EasyCAT shield loopback test 170912 ---------------------------------------------  
 //
 // Derived from the example Arduino project TestEasyCAT_LoopBack.ino 
@@ -49,7 +53,7 @@
 
 //---- pins declaration ------------------------------------------------------------------------------
 
-DigitalOut Led(LED1);          
+         
 
 
 //---------------------------------------------------------------------------------------------
@@ -72,6 +76,8 @@
                                                         // The most common reason is that the SPI 
                                                         // chip select choosen on the board doesn't 
                                                         // match the one choosen by the firmware
+                                                            
+    DigitalOut Led(LED1);                               //                                                            
                                                                   
     while (1)                                           // stay in loop for ever
     {                                                   // with the led blinking