24 void set_loop(uint32_t start_frame, uint32_t end_frame,
int count);
41 void play(Ts...
x)
override { this->parent_->next_frame(); }
50 void play(Ts...
x)
override { this->parent_->prev_frame(); }
60 void play(Ts...
x)
override { this->parent_->set_frame(this->frame_.value(
x...)); }
int get_current_frame() const
void set_frame(int frame)
Selects a specific frame within the animation.
uint32_t animation_frame_count_
void play(Ts... x) override
uint32_t get_animation_frame_count() const
int loop_current_iteration_
uint32_t loop_start_frame_
TEMPLATABLE_VALUE(uint16_t, frame) void play(Ts... x) override
void update_data_start_()
AnimationSetFrameAction(Animation *parent)
const uint8_t * animation_data_start_
AnimationPrevFrameAction(Animation *parent)
void set_loop(uint32_t start_frame, uint32_t end_frame, int count)
Animation(const uint8_t *data_start, int width, int height, uint32_t animation_frame_count, image::ImageType type)
void play(Ts... x) override
Implementation of SPI Controller mode.
AnimationNextFrameAction(Animation *parent)