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 0:f1a9ec5fba60, committed 2016-08-23
- Comitter:
- open4416
- Date:
- Tue Aug 23 14:22:06 2016 +0000
- Commit message:
- test
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Aug 23 14:22:06 2016 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+
+DigitalInOut BK(D8, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut B(D9, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut W(D10, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut Y(D11, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut G(D12, PIN_OUTPUT, OpenDrain, 1);
+DigitalInOut R(D13, PIN_OUTPUT, OpenDrain, 1);
+
+int main()
+{
+
+ while(1) {
+
+ BK = 1; // LED is ON
+ B = 1; // LED is ON
+ W = 1; // LED is ON
+ Y = 1; // LED is ON
+ G = 1; // LED is ON
+ R = 1; // LED is ON
+ wait(5.0); // 1 sec
+
+ BK = 0; // LED is ON
+ B = 0; // LED is ON
+ W = 0; // LED is ON
+ Y = 0; // LED is ON
+ G = 0; // LED is ON
+ R = 0; // LED is ON
+ wait(5.0); // 1 sec
+
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Aug 23 14:22:06 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/2241e3a39974 \ No newline at end of file
