Skip to content

Instantly share code, notes, and snippets.

#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