splash.h (522B)
1 #ifndef SPLASH_H 2 #define SPLASH_H 3 4 #include <stdint.h> 5 #include "decoder.h" 6 7 /* Splash screen configuration */ 8 #define SPLASH_DURATION_MS 2000 /* 2 seconds */ 9 10 /* Display a splash screen with a PNG image */ 11 int splash_show_png(const uint8_t* png_data, uint32_t png_size, uint32_t duration_ms); 12 13 /* Display a splash screen from ramdisk file path */ 14 int splash_show_from_file(const char* filepath, uint32_t duration_ms); 15 16 /* Simple delay function (milliseconds) */ 17 void splash_delay_ms(uint32_t ms); 18 19 #endif /* SPLASH_H */