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:251b7fc77d70, committed 2012-06-21
- Comitter:
- captorsaw
- Date:
- Thu Jun 21 09:01:46 2012 +0000
- Commit message:
- --__-- NICE LEDS FONCTION --__--
Changed in this revision
| LED2fichiersource.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 |
diff -r 000000000000 -r 251b7fc77d70 LED2fichiersource.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LED2fichiersource.cpp Thu Jun 21 09:01:46 2012 +0000
@@ -0,0 +1,137 @@
+#include "mbed.h"
+
+BusOut myleds(LED1, LED2, LED3, LED4);
+
+int main() {
+ while (1) {
+
+ myleds = 3 <<0 ;
+ wait(0.8);
+ myleds = 3 <<1 ;
+ wait(0.8);
+ myleds=3<<2;
+ wait(0.8);
+ myleds=1<<0;
+ wait(0.8);
+ myleds=1<<1;
+ wait(0.08);
+ myleds=1<<2;
+ wait(0.8);
+ myleds=1<<3;
+ wait(0.08);
+ myleds=1<<2;
+ wait(0.08);
+ myleds=1<<1;
+ wait(0.08);
+ myleds=1<<0;
+ wait(0.08);
+ myleds = 1 << 0;
+ wait(0.35);
+ myleds = 1 << 3;
+ wait(0.35);
+ myleds = 1 << 0;
+ wait(0.35);
+ myleds = 1 << 3;
+ wait(0.35);
+ myleds = 1 << 0;
+ wait(0.35);
+ myleds = 1 << 3;
+ wait(0.35);
+ myleds = 1 <<1 ;
+ wait(0.45);
+ myleds = 1 << 2;
+ wait(0.45);
+ myleds = 1 <<1 ;
+ wait(0.45);
+ myleds=1<<2;
+ wait(0.45);
+ myleds = 1 << 0;
+ wait(0.35);
+ myleds = 1 << 3;
+ wait(0.35);
+ myleds = 1 << 0;
+ wait(0.35);
+ myleds=1<<3;
+ wait(0.35);
+ myleds = 1 << 0;
+ wait(0.35);
+ myleds = 1 << 3;
+ wait(0.35);
+ myleds = 1 <<1 ;
+ wait(0.45);
+ myleds = 1 << 2;
+ wait(0.45);
+ myleds = 1 <<1 ;
+ wait(0.45);
+ myleds = 1 << 2;
+ wait(0.45);
+ myleds = 1 <<0;
+ wait(0.6);
+ myleds = 1 <<1;
+ wait(0.6);
+ myleds = 1 <<2;
+ wait(0.6);
+ myleds = 1 <<3;
+ wait(0.6);
+ myleds = 1 <<3;
+ wait(0.6);
+ myleds = 1 <<2;
+ wait(0.6);
+ myleds = 1 <<1;
+ wait(0.6);
+ myleds = 1 <<0;
+ wait(0.6);
+ myleds = 1 <<1;
+ wait(0.6);
+ myleds = 1 <<2;
+ wait(0.6);
+ myleds = 1 <<1;
+ wait(0.6);
+ myleds = 1 <<2;
+ wait(0.6);
+ myleds=1<<0;
+ wait(0.08);
+ myleds=1<<1;
+ wait(0.08);
+ myleds=1<<2;
+ wait(0.08);
+ myleds=1<<3;
+ wait(0.08);
+ myleds=1<<2;
+ wait(0.08);
+ myleds=1<<1;
+ wait(0.08);
+ myleds=1<<0;
+ wait(0.08);
+ myleds=1<<0;
+ wait(0.08);
+ myleds=1<<1;
+ wait(0.08);
+ myleds=1<<2;
+ wait(0.08);
+ myleds=1<<3;
+ wait(0.08);
+ myleds=1<<2;
+ wait(0.08);
+ myleds=1<<1;
+ wait(0.08);
+ myleds=1<<0;
+ wait(0.08);
+ myleds=1<<0;
+ wait(0.08);
+ myleds=1<<1;
+ wait(0.08);
+ myleds=1<<2;
+ wait(0.08);
+ myleds=1<<3;
+ wait(0.08);
+ myleds=1<<2;
+ wait(0.08);
+ myleds=1<<1;
+ wait(0.08);
+ myleds=1<<0;
+ wait(0.08);
+ }
+ }
+
+
diff -r 000000000000 -r 251b7fc77d70 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jun 21 09:01:46 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479