mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-01 10:04:03 +03:00
d3ff787864
* GUI: abolish API injection into instances. Update usage by 3rd party apps. * GUI: update documentation. Cleanup api usage. Adjust status bar item spacing.
30 lines
451 B
C
30 lines
451 B
C
#pragma once
|
|
|
|
#include "icon.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
struct IconData {
|
|
const uint8_t width;
|
|
const uint8_t height;
|
|
const uint8_t frame_count;
|
|
const uint8_t frame_rate;
|
|
const uint8_t** frames;
|
|
};
|
|
|
|
struct Icon {
|
|
const IconData* data;
|
|
uint8_t frame;
|
|
uint32_t tick;
|
|
};
|
|
|
|
/*
|
|
* Get pointer to current frame data
|
|
*/
|
|
const uint8_t* icon_get_data(Icon* icon);
|
|
|
|
/*
|
|
* Advance to next frame
|
|
*/
|
|
void icon_next_frame(Icon* icon);
|