This file contains hidden or 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
| #ifdef OLED_DRIVER_ENABLE | |
| #define ANIM_NUM_FRAMES 2 // number of frames in the animation | |
| #define ANIM_FRAME_DURATION 100 // how long each frame lasts | |
| // #define ANIM_REVERSE // define this if you want the animation to run backwards at the end | |
| #ifdef ANIM_REVERSE | |
| #define ANIM_TOTAL_FRAMES (2*((ANIM_NUM_FRAMES)-1)) | |
| #else | |
| #define ANIM_TOTAL_FRAMES ANIM_NUM_FRAMES | |
| #endif |