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.
Revision 1:d4ef93a264b7, committed 2015-04-12
- Comitter:
- kizosgr
- Date:
- Sun Apr 12 23:25:38 2015 +0000
- Parent:
- 0:b08cd12df913
- Commit message:
- EzSBC2 blink at 2 LEDs P1_15 and P1_22
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Apr 12 23:14:01 2015 +0000
+++ b/main.cpp Sun Apr 12 23:25:38 2015 +0000
@@ -1,9 +1,9 @@
#include "mbed.h"
-// WiFi DipCortex has 1 LED shared with the button on P0_1
-DigitalOut Led(P1_15);
+// EzSBC2 has 2 LEDs P1_15 and P1_16
+
+DigitalOut Led1(P1_15);
-// DipCortex has 2 LEDs P0_1 and P1_22
DigitalOut Led2(P1_16);
int main()
@@ -12,7 +12,7 @@
{
Led2 = !Led2;
wait_ms(250);
- Led = !Led;
+ Led1 = !Led1;
wait_ms(250);
}
}
\ No newline at end of file