3 static const byte NW_pin = 3;
4 static const byte NE_pin = 4;
5 static const byte SE_pin = 1;
6 static const byte SW_pin = 0;
8 static const byte NW_pin = 5;
9 static const byte NE_pin = 6;
10 static const byte SE_pin = 10;
11 static const byte SW_pin = 11;
16 pinMode(NW_pin, OUTPUT);
17 pinMode(NE_pin, OUTPUT);
18 pinMode(SE_pin, OUTPUT);
19 pinMode(SW_pin, OUTPUT);
32 blink(NW_pin, 500, 200);
34 blink(NE_pin, 500, 200);
36 blink(SE_pin, 500, 200);
38 blink(SW_pin, 500, 200);
43 fade(NW_pin, 0, 255, 50);
45 fade(SW_pin, 0, 255, 50);
47 fade(SE_pin, 0, 255, 50);
49 fade(NE_pin, 0, 255, 50);
52 void blink(byte pin, unsigned long lightMillis, unsigned long pauseMillis) {
62 void fade(byte pin, byte from, byte to, unsigned long pauseMillis)
64 for(byte val=from; val<to; val+=5)
66 analogWrite(pin, val);
72 // put your main code here, to run repeatedly: