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
Revision 1:82fcd22dd909, committed 2019-01-09
- 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