Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated Fading RGB Example for StellarPad

  • Loading branch information...
commit 52994073eb65e2339c2d2474bbfd5bc9b3018c4e 1 parent 4b4833c
@rei-vilo rei-vilo authored
View
BIN  examples/1.Basics/Stellar_Fading_RGB/Stellar_Fading_RGB Reference.pdf
Binary file not shown
View
45 examples/1.Basics/Stellar_Fading_RGB/Stellar_Fading_RGB.ino
@@ -8,8 +8,8 @@
/// @n @a Developed with [embedXcode](http://embedXcode.weebly.com)
///
/// @author Rei VILO
-/// @date Nov 22, 2012
-/// @version 102
+/// @date Nov 26, 2012
+/// @version 103
///
/// @copyright © Rei VILO, 2012
/// @copyright CC = BY NC SA
@@ -25,8 +25,8 @@
/// @n @a Developed with [embedXcode](http://embedXcode.weebly.com)
///
/// @author Rei VILO
-/// @date Nov 22, 2012
-/// @version 102
+/// @date Nov 26, 2012
+/// @version 103
///
/// @copyright © Rei VILO, 2012
/// @copyright CC = BY NC SA
@@ -129,29 +129,44 @@ void setup() {
void loop() {
Serial.println("Fading from BLACK to RED...");
- fade(0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 8, 1000);
- Serial.println("Fading from to GREEN...");
- fade(0x7f, 0x00, 0x00, 0x00, 0x7f, 0x00, 8, 1000);
+ fade(0x00, 0x00, 0x00, 0x7f, 0x00, 0x00, 32, 50);
+
+ Serial.println("Fading from RED to GREEN...");
+ fade(0x7f, 0x00, 0x00, 0x00, 0x7f, 0x00, 32, 50);
+
+ Serial.println("Fading from GREEN to BLACK...");
+ fade(0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 32, 50);
+ Serial.println("Fading from BLACK to GREEN...");
+ fade(0x00, 0x00, 0x00, 0x00, 0x7f, 0x00, 32, 50);
+
Serial.println("Fading from GREEN to BLUE...");
- fade(0x00, 0x7f, 0x00, 0x00, 0x00, 0x7f, 8, 1000);
+ fade(0x00, 0x7f, 0x00, 0x00, 0x00, 0x7f, 32, 50);
+
+ Serial.println("Fading from BLUE to BLACK...");
+ fade(0x00, 0x00, 0x7f, 0x00, 0x00, 0x00, 32, 50);
+ Serial.println("Fading from BLACK to BLUE...");
+ fade(0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 32, 50);
+
Serial.println("Fading from BLUE to RED...");
- fade(0x00, 0x00, 0x7f, 0x7f, 0x00, 0x00, 8, 1000);
+ fade(0x00, 0x00, 0x7f, 0x7f, 0x00, 0x00, 32, 50);
+
Serial.println("Fading from RED to BLACK...");
- fade(0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 8, 1000);
+ fade(0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 32, 50);
Serial.println("Fading from BLACK to WHITE...");
- fade(0x00, 0x00, 0x00, 0x7f, 0x7f, 0x7f, 8, 1000);
+ fade(0x00, 0x00, 0x00, 0x7f, 0x7f, 0x7f, 32, 50);
Serial.println("Blinking WHITE...");
set(0x00, 0x00, 0x00);
- delay(1000);
+ delay(500);
set(0x7f, 0x7f, 0x7f);
- delay(1000);
+ delay(500);
set(0x00, 0x00, 0x00);
- delay(1000);
+ delay(500);
set(0x7f, 0x7f, 0x7f);
- delay(1000);
+ delay(500);
set(0x00, 0x00, 0x00);
delay(1000);
}
+
Please sign in to comment.
Something went wrong with that request. Please try again.