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
Revision 1:e17f76016eaa, committed 2018-05-09
- Comitter:
- titanium
- Date:
- Wed May 09 08:27:41 2018 +0000
- Parent:
- 0:08244a723eff
- Commit message:
- four led version;
Changed in this revision
| multi_blinky.cpp | Show diff for this revision Revisions of this file |
| simple_blinky4.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 08244a723eff -r e17f76016eaa multi_blinky.cpp
--- a/multi_blinky.cpp Sun Apr 01 04:51:36 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#include "mbed.h"
-
-DigitalOut digled1(LED1), digled2(LED2);
-DigitalOut digled3(p22), digled4(p23);
-
-int main() {
- while(1) {
- digled1= !digled1;
- digled2= !digled2;
- digled3= !digled3;
- digled4= !digled4;
- wait(1.0);
- } }
-
diff -r 08244a723eff -r e17f76016eaa simple_blinky4.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/simple_blinky4.cpp Wed May 09 08:27:41 2018 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalOut digled1(LED1), digled2(LED2);
+DigitalOut digled3(p22), digled4(p23);
+
+int main() {
+ digled1=1; digled3=1;
+ while(1) {
+ digled1= !digled1;
+ digled2= !digled2;
+ digled3= !digled3;
+ digled4= !digled4;
+ wait(1.0);
+ } }
+