Created
January 3, 2017 16:06
-
-
Save Miceuz/4b713123593b8a8a4c7c6b354b4d5dfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Tlc5940.h" | |
void setup() { | |
Tlc.init(); | |
} | |
void fadeOut() { | |
for(int j = 4095; j >= 0; j--){ | |
for(int i = 0; i < 16; i++) { | |
Tlc.set(i, j); | |
} | |
Tlc.update(); | |
delay(1); | |
} | |
} | |
void loop() { | |
Tlc.clear(); | |
Tlc.update(); | |
//palaukti 2 sekundžių | |
delay(2000); | |
Tlc.set(0, 4095); | |
Tlc.update(); | |
delay(5000); | |
Tlc.set(1, 4095); | |
Tlc.update(); | |
delay(4500); | |
Tlc.set(2, 4095); | |
Tlc.update(); | |
delay(4000); | |
Tlc.set(3, 4095); | |
Tlc.update(); | |
delay(3500); | |
Tlc.set(4, 4095); | |
Tlc.update(); | |
delay(3000); | |
Tlc.set(5, 4095); | |
Tlc.update(); | |
delay(2500); | |
Tlc.set(6, 4095); | |
Tlc.update(); | |
delay(2000); | |
Tlc.set(7, 4095); | |
Tlc.update(); | |
delay(1500); | |
Tlc.set(8, 4095); | |
Tlc.update(); | |
delay(1000); | |
Tlc.set(9, 4095); | |
Tlc.update(); | |
delay(500); | |
Tlc.set(10, 4095); | |
Tlc.update(); | |
delay(400); | |
Tlc.set(11, 4095); | |
Tlc.update(); | |
delay(300); | |
Tlc.set(12, 4095); | |
Tlc.update(); | |
delay(200); | |
Tlc.set(13, 4095); | |
Tlc.update(); | |
delay(100); | |
Tlc.set(14, 4095); | |
Tlc.update(); | |
delay(100); | |
Tlc.set(15, 4095); | |
Tlc.update(); | |
//uždegus visus palaukti 15 sekundžių | |
//delay(1500); | |
fadeOut(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment