File AnimationEffects.cpp
↰ Parent directory (lib/LED_clock/Modules/SevenSegment/src)
Implementation of the basic animations that are avaliable for all segments Requirements to such an animation function:
Definition (lib/LED_clock/Modules/SevenSegment/src/AnimationEffects.cpp)
Detailed Description
Florian Laschober
All animations have to have the same prototype
An animation function always has to set the state of all LEDs that it is affecting for every step. This is required because an animation can also be played backwards or multiple directions during the lifetime of one animation (for example a bounce easing)
The animation always starts when the current step is 0, but undershoot is also possible so it also has to be considered what happens if current step goes negative. This should also result in a logical animation being displayed
The current step can go higher than totalSteps, this would then be an overshoot. Same considerations as above should be taken into account.
Includes
AnimationEffects.h(File AnimationEffects.h)