AB&T / Mbed 2 deprecated TestEasyCAT_DC_sync

Dependencies:   mbed EasyCAT_lib

Files at this revision

API Documentation at this revision

Comitter:
EasyCAT
Date:
Wed Jan 09 09:44:02 2019 +0000
Parent:
0:8645807d740c
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:21:57 2017 +0000
+++ b/main.cpp	Wed Jan 09 09:44:02 2019 +0000
@@ -12,6 +12,10 @@
 //******************************************************************************************** 
 
 
+// revision 2 - moved  "DigitalOut Led(LED1)"
+
+
+
 //- EasyCAT shield basic example using DC synchronization for mbed boards -170912
 //
 //- Derived from the example project TestEasyCAT_DC_sync.ino for the AB&T EasyCAT Arduino shield
@@ -75,7 +79,7 @@
 DigitalIn In_2(D6);              // 
 DigitalIn In_3(D7);              //     
 
-DigitalOut Led(LED1);            //  
+  
 
 
 InterruptIn event(D2);           // This pin receive the SM interrupt 
@@ -136,6 +140,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