Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help #4

Open
raveruk1 opened this issue Dec 10, 2017 · 1 comment
Open

help #4

raveruk1 opened this issue Dec 10, 2017 · 1 comment

Comments

@raveruk1
Copy link

hi is their a away so that this sketch scrolls through the effects every 15 seconds thank for any help with this

@sfrwmaker
Copy link
Owner

Hello!

As far as i've understood, you wish to change new effect sequence (animation) every 15 seconds, right? Actually, you can change them every 10 or 20 or 30 seconds and so on.

You can change the sketch accordingly:

  1. Line #9 set the minimal sequence show time to 10
    const byte min_time = 10; // Minimal sequence show time (seconds)
  2. Go through animation class declaration and change the min_p and max_p parameters to 1 (for 10 seconds and 2 for 20 seconds) min_p =1; max_p = 1;
    For example:
    class colorWalk: public animation {
    public:
    colorWalk(void) { min_p = 1; max_p = 1;}

The animation has minimum time to show (one time animation). Even you would set minimum and maximum show times to 10 (or 20) seconds, The animation would show at least once.
There are some animations (for example randomFill) that will run for long time.

Probably, you should debug some animation. To simplify this process, You can uncomment the line #2088 ( //aIndex = 18;) and initialize the variable aIndex with the Index of required animation. The animation has uniq index in the array 'animation' in the line#2195. animation #18 is rFill.

animation* anims[] = {
&cWipe, &cWalk, &cCreep, &cRainbow, &cRainCycle, &cRainFull, &cWave, &lUp, &sRnd, &rFade,
&cCollEnd, &cRun, &cSeven, &mOne, &mWave, &cOne, &cFire, &cEvenOdd, &rFill, &cCollMdl,
&cBlend, &cSwing, &cSwingS, &cFlash, &sWave, &cWorms, &cInterf, &cToward, &rToward, &lHouse,
&cDrops, &wSeven, &fSeven, &sCreep
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants