--__-- NICE LEDS FONCTION --__--

Dependencies:   mbed

Committer:
captorsaw
Date:
Thu Jun 21 09:01:46 2012 +0000
Revision:
0:251b7fc77d70
--__-- NICE LEDS FONCTION --__--

Who changed what in which revision?

UserRevisionLine numberNew contents of line
captorsaw 0:251b7fc77d70 1 #include "mbed.h"
captorsaw 0:251b7fc77d70 2
captorsaw 0:251b7fc77d70 3 BusOut myleds(LED1, LED2, LED3, LED4);
captorsaw 0:251b7fc77d70 4
captorsaw 0:251b7fc77d70 5 int main() {
captorsaw 0:251b7fc77d70 6 while (1) {
captorsaw 0:251b7fc77d70 7
captorsaw 0:251b7fc77d70 8 myleds = 3 <<0 ;
captorsaw 0:251b7fc77d70 9 wait(0.8);
captorsaw 0:251b7fc77d70 10 myleds = 3 <<1 ;
captorsaw 0:251b7fc77d70 11 wait(0.8);
captorsaw 0:251b7fc77d70 12 myleds=3<<2;
captorsaw 0:251b7fc77d70 13 wait(0.8);
captorsaw 0:251b7fc77d70 14 myleds=1<<0;
captorsaw 0:251b7fc77d70 15 wait(0.8);
captorsaw 0:251b7fc77d70 16 myleds=1<<1;
captorsaw 0:251b7fc77d70 17 wait(0.08);
captorsaw 0:251b7fc77d70 18 myleds=1<<2;
captorsaw 0:251b7fc77d70 19 wait(0.8);
captorsaw 0:251b7fc77d70 20 myleds=1<<3;
captorsaw 0:251b7fc77d70 21 wait(0.08);
captorsaw 0:251b7fc77d70 22 myleds=1<<2;
captorsaw 0:251b7fc77d70 23 wait(0.08);
captorsaw 0:251b7fc77d70 24 myleds=1<<1;
captorsaw 0:251b7fc77d70 25 wait(0.08);
captorsaw 0:251b7fc77d70 26 myleds=1<<0;
captorsaw 0:251b7fc77d70 27 wait(0.08);
captorsaw 0:251b7fc77d70 28 myleds = 1 << 0;
captorsaw 0:251b7fc77d70 29 wait(0.35);
captorsaw 0:251b7fc77d70 30 myleds = 1 << 3;
captorsaw 0:251b7fc77d70 31 wait(0.35);
captorsaw 0:251b7fc77d70 32 myleds = 1 << 0;
captorsaw 0:251b7fc77d70 33 wait(0.35);
captorsaw 0:251b7fc77d70 34 myleds = 1 << 3;
captorsaw 0:251b7fc77d70 35 wait(0.35);
captorsaw 0:251b7fc77d70 36 myleds = 1 << 0;
captorsaw 0:251b7fc77d70 37 wait(0.35);
captorsaw 0:251b7fc77d70 38 myleds = 1 << 3;
captorsaw 0:251b7fc77d70 39 wait(0.35);
captorsaw 0:251b7fc77d70 40 myleds = 1 <<1 ;
captorsaw 0:251b7fc77d70 41 wait(0.45);
captorsaw 0:251b7fc77d70 42 myleds = 1 << 2;
captorsaw 0:251b7fc77d70 43 wait(0.45);
captorsaw 0:251b7fc77d70 44 myleds = 1 <<1 ;
captorsaw 0:251b7fc77d70 45 wait(0.45);
captorsaw 0:251b7fc77d70 46 myleds=1<<2;
captorsaw 0:251b7fc77d70 47 wait(0.45);
captorsaw 0:251b7fc77d70 48 myleds = 1 << 0;
captorsaw 0:251b7fc77d70 49 wait(0.35);
captorsaw 0:251b7fc77d70 50 myleds = 1 << 3;
captorsaw 0:251b7fc77d70 51 wait(0.35);
captorsaw 0:251b7fc77d70 52 myleds = 1 << 0;
captorsaw 0:251b7fc77d70 53 wait(0.35);
captorsaw 0:251b7fc77d70 54 myleds=1<<3;
captorsaw 0:251b7fc77d70 55 wait(0.35);
captorsaw 0:251b7fc77d70 56 myleds = 1 << 0;
captorsaw 0:251b7fc77d70 57 wait(0.35);
captorsaw 0:251b7fc77d70 58 myleds = 1 << 3;
captorsaw 0:251b7fc77d70 59 wait(0.35);
captorsaw 0:251b7fc77d70 60 myleds = 1 <<1 ;
captorsaw 0:251b7fc77d70 61 wait(0.45);
captorsaw 0:251b7fc77d70 62 myleds = 1 << 2;
captorsaw 0:251b7fc77d70 63 wait(0.45);
captorsaw 0:251b7fc77d70 64 myleds = 1 <<1 ;
captorsaw 0:251b7fc77d70 65 wait(0.45);
captorsaw 0:251b7fc77d70 66 myleds = 1 << 2;
captorsaw 0:251b7fc77d70 67 wait(0.45);
captorsaw 0:251b7fc77d70 68 myleds = 1 <<0;
captorsaw 0:251b7fc77d70 69 wait(0.6);
captorsaw 0:251b7fc77d70 70 myleds = 1 <<1;
captorsaw 0:251b7fc77d70 71 wait(0.6);
captorsaw 0:251b7fc77d70 72 myleds = 1 <<2;
captorsaw 0:251b7fc77d70 73 wait(0.6);
captorsaw 0:251b7fc77d70 74 myleds = 1 <<3;
captorsaw 0:251b7fc77d70 75 wait(0.6);
captorsaw 0:251b7fc77d70 76 myleds = 1 <<3;
captorsaw 0:251b7fc77d70 77 wait(0.6);
captorsaw 0:251b7fc77d70 78 myleds = 1 <<2;
captorsaw 0:251b7fc77d70 79 wait(0.6);
captorsaw 0:251b7fc77d70 80 myleds = 1 <<1;
captorsaw 0:251b7fc77d70 81 wait(0.6);
captorsaw 0:251b7fc77d70 82 myleds = 1 <<0;
captorsaw 0:251b7fc77d70 83 wait(0.6);
captorsaw 0:251b7fc77d70 84 myleds = 1 <<1;
captorsaw 0:251b7fc77d70 85 wait(0.6);
captorsaw 0:251b7fc77d70 86 myleds = 1 <<2;
captorsaw 0:251b7fc77d70 87 wait(0.6);
captorsaw 0:251b7fc77d70 88 myleds = 1 <<1;
captorsaw 0:251b7fc77d70 89 wait(0.6);
captorsaw 0:251b7fc77d70 90 myleds = 1 <<2;
captorsaw 0:251b7fc77d70 91 wait(0.6);
captorsaw 0:251b7fc77d70 92 myleds=1<<0;
captorsaw 0:251b7fc77d70 93 wait(0.08);
captorsaw 0:251b7fc77d70 94 myleds=1<<1;
captorsaw 0:251b7fc77d70 95 wait(0.08);
captorsaw 0:251b7fc77d70 96 myleds=1<<2;
captorsaw 0:251b7fc77d70 97 wait(0.08);
captorsaw 0:251b7fc77d70 98 myleds=1<<3;
captorsaw 0:251b7fc77d70 99 wait(0.08);
captorsaw 0:251b7fc77d70 100 myleds=1<<2;
captorsaw 0:251b7fc77d70 101 wait(0.08);
captorsaw 0:251b7fc77d70 102 myleds=1<<1;
captorsaw 0:251b7fc77d70 103 wait(0.08);
captorsaw 0:251b7fc77d70 104 myleds=1<<0;
captorsaw 0:251b7fc77d70 105 wait(0.08);
captorsaw 0:251b7fc77d70 106 myleds=1<<0;
captorsaw 0:251b7fc77d70 107 wait(0.08);
captorsaw 0:251b7fc77d70 108 myleds=1<<1;
captorsaw 0:251b7fc77d70 109 wait(0.08);
captorsaw 0:251b7fc77d70 110 myleds=1<<2;
captorsaw 0:251b7fc77d70 111 wait(0.08);
captorsaw 0:251b7fc77d70 112 myleds=1<<3;
captorsaw 0:251b7fc77d70 113 wait(0.08);
captorsaw 0:251b7fc77d70 114 myleds=1<<2;
captorsaw 0:251b7fc77d70 115 wait(0.08);
captorsaw 0:251b7fc77d70 116 myleds=1<<1;
captorsaw 0:251b7fc77d70 117 wait(0.08);
captorsaw 0:251b7fc77d70 118 myleds=1<<0;
captorsaw 0:251b7fc77d70 119 wait(0.08);
captorsaw 0:251b7fc77d70 120 myleds=1<<0;
captorsaw 0:251b7fc77d70 121 wait(0.08);
captorsaw 0:251b7fc77d70 122 myleds=1<<1;
captorsaw 0:251b7fc77d70 123 wait(0.08);
captorsaw 0:251b7fc77d70 124 myleds=1<<2;
captorsaw 0:251b7fc77d70 125 wait(0.08);
captorsaw 0:251b7fc77d70 126 myleds=1<<3;
captorsaw 0:251b7fc77d70 127 wait(0.08);
captorsaw 0:251b7fc77d70 128 myleds=1<<2;
captorsaw 0:251b7fc77d70 129 wait(0.08);
captorsaw 0:251b7fc77d70 130 myleds=1<<1;
captorsaw 0:251b7fc77d70 131 wait(0.08);
captorsaw 0:251b7fc77d70 132 myleds=1<<0;
captorsaw 0:251b7fc77d70 133 wait(0.08);
captorsaw 0:251b7fc77d70 134 }
captorsaw 0:251b7fc77d70 135 }
captorsaw 0:251b7fc77d70 136
captorsaw 0:251b7fc77d70 137