Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed EasyCAT_lib
Diff: main.cpp
- Revision:
- 1:a1411df7f601
- Parent:
- 0:ec011e648d2e
--- a/main.cpp Tue Sep 12 17:26:41 2017 +0000
+++ b/main.cpp Wed Jan 09 09:40:53 2019 +0000
@@ -12,6 +12,9 @@
//********************************************************************************************
+// revision 2 - moved "DigitalOut Led(LED1)"
+
+
//- EasyCAT shield application basic example 170912
//- using SM syncronization for mbed boards
//
@@ -78,7 +81,7 @@
DigitalIn In_2(D6); //
DigitalIn In_3(D7); //
-DigitalOut Led(LED1); //
+
DigitalIn InterruptPin(D2); // This pin receive the SM interrupt
@@ -138,6 +141,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
