-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed sequence bug. Note that AlaSeq struct has different order for the variables.
- Loading branch information
1 parent
398f265
commit 97321cb
Showing
19 changed files
with
164 additions
and
154 deletions.
There are no files selected for viewing
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/////////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// ALA library example: RgbStripSequence | ||
// | ||
// Example to demonstrate how to create an animation sequence for a | ||
// WS2812 RGB LED strip. | ||
// | ||
// Web page: http://yaab-arduino.blogspot.com/p/ala-example-rgbstripseq.html | ||
// | ||
/////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
#include <AlaLedRgb.h> | ||
|
||
AlaLedRgb rgbStrip; | ||
|
||
|
||
AlaSeq seq[] = | ||
{ | ||
{ ALA_OFF, 1000, 2000, alaPalNull }, | ||
{ ALA_ON, 1000, 2000, alaPalRgb }, | ||
{ ALA_SPARKLE, 1000, 9000, alaPalRgb }, | ||
{ ALA_CYCLECOLORS, 3000, 6000, alaPalRgb }, | ||
{ ALA_OFF, 1000, 1000, alaPalNull }, | ||
{ ALA_FADECOLORSLOOP, 3000, 6000, alaPalRgb }, | ||
{ ALA_SPARKLE2, 1000, 6000, alaPalRgb }, | ||
{ ALA_OFF, 1000, 1000, alaPalNull }, | ||
{ ALA_SPARKLE2, 1000, 6000, alaPalFire }, | ||
{ ALA_PIXELSMOOTHSHIFTRIGHT, 6000, 2000, alaPalRgb }, | ||
{ ALA_OFF, 1000, 1000, alaPalNull }, | ||
{ ALA_MOVINGBARS, 3000, 6000, alaPalRgb }, | ||
{ ALA_COMET, 3000, 6000, alaPalRgb }, | ||
{ ALA_COMETCOL, 3000, 6000, alaPalRgb }, | ||
{ ALA_OFF, 1000, 1000, alaPalNull }, | ||
{ ALA_GLOW, 3000, 6000, alaPalRgb }, | ||
{ ALA_OFF, 1000, 1000, alaPalNull }, | ||
{ ALA_FIRE, 1000, 6000, alaPalFire }, | ||
{ ALA_OFF, 1000, 1000, alaPalNull }, | ||
{ ALA_BOUNCINGBALLS, 1000, 6000, alaPalRgb }, | ||
{ ALA_OFF, 1000, 1000, alaPalNull }, | ||
{ ALA_BUBBLES, 1000, 6000, alaPalRainbow }, | ||
{ ALA_ENDSEQ } | ||
}; | ||
|
||
|
||
void setup() | ||
{ | ||
delay(1000); | ||
|
||
rgbStrip.initWS2812(60, 6); | ||
|
||
rgbStrip.setBrightness(0x444444); | ||
|
||
rgbStrip.setAnimation(seq); | ||
} | ||
|
||
void loop() | ||
{ | ||
rgbStrip.runAnimation(); | ||
} | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ void loop() | |
{ | ||
rgbLed.runAnimation(); // run the animation indefinitely | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
/////////////////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// ALA library example: RgbStrip | ||
// ALA library example: SimpleRgbStrip | ||
// | ||
// Example to demonstrate how to create display a color-fading animation for a | ||
// WS2812 RGB LED strip. | ||
// | ||
// Web page: http://yaab-arduino.blogspot.com/p/ala-example-rgbstrip.html | ||
// Web page: http://yaab-arduino.blogspot.com/p/ala-example-simplergbstrip.html | ||
// | ||
/////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
#include "AlaLedRgb.h" | ||
#include <AlaLedRgb.h> | ||
|
||
AlaLedRgb rgbStrip; | ||
|
||
void setup() | ||
{ | ||
// initialize the WS2812 strip with 30 leds on pin 6 | ||
rgbStrip.initWS2812(30, 6); | ||
|
||
// set a color-fading animation with a duration of 5 seconds and an RGB palette | ||
rgbStrip.setAnimation(ALA_FADECOLORSLOOP, 5000, alaPalRgb); | ||
} | ||
|
||
void loop() | ||
{ | ||
// run the animation | ||
rgbStrip.runAnimation(); | ||
} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=ALA | ||
version=2.2.0 | ||
version=2.3 | ||
author=bportaluri | ||
maintainer=Bruno Portaluri <[email protected]> | ||
sentence=Arduino Light Animation (ALA) is a library | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#include "Ala.h" | ||
|
||
#include "Arduino.h" | ||
|
||
|
||
int getStep(long t0, long t, int v) | ||
{ | ||
|
Oops, something went wrong.