Verified Commit 3565627b authored by Rahix's avatar Rahix

feat(epicardium): Adjust version-splash

Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent a0fcd847
......@@ -4,6 +4,10 @@
#include "modules/config.h"
#include "card10-version.h"
#include "gfx.h"
#include "display.h"
#include "version-splash.h"
#include "FreeRTOS.h"
#include "task.h"
#include "mxc_delay.h"
......@@ -27,10 +31,19 @@ int main(void)
* Version Splash
*/
const char *version_buf = CARD10_VERSION;
const int off = (160 - (int)strlen(version_buf) * 14) / 2;
mxc_delay(500000);
epic_disp_clear(0x0000);
epic_disp_print(10, 20, "Epicardium", 0xfe20, 0x0000);
epic_disp_print(off > 0 ? off : 0, 40, version_buf, 0xfe20, 0x0000);
if (strcmp(CARD10_VERSION, "v1.10") == 0) {
gfx_copy_region_raw(
&display_screen, 0, 0, 160, 80, 2, version_splash
);
} else {
const int off = (160 - (int)strlen(version_buf) * 14) / 2;
epic_disp_print(10, 20, "Epicardium", 0xfe20, 0x0000);
epic_disp_print(
off > 0 ? off : 0, 40, version_buf, 0xfe20, 0x0000
);
}
epic_disp_update();
mxc_delay(2000000);
......
const unsigned char version_splash[] = {
0xc5, 0x08,
0xc5, 0x08,
0xc5, 0x08,
0xc5, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xe6, 0x08,
0xe6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc5, 0x08,
0xc5, 0x10,
0xc5, 0x10,
0xc5, 0x10,
0xc5, 0x10,
0xc4, 0x18,
0xe4, 0x18,
0xe4, 0x18,
0xe4, 0x20,
0xe3, 0x20,
0xe3, 0x20,
0xe3, 0x28,
0xe3, 0x28,
0xe3, 0x28,
0xe2, 0x30,
0xe2, 0x30,
0x02, 0x31,
0x02, 0x39,
0x02, 0x39,
0x01, 0x39,
0x01, 0x41,
0x01, 0x41,
0x01, 0x41,
0x01, 0x41,
0x01, 0x41,
0x21, 0x49,
0x21, 0x49,
0x21, 0x49,
0x20, 0x49,
0x20, 0x49,
0x20, 0x49,
0x20, 0x49,
0x20, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x41,
0x40, 0x41,
0x40, 0x41,
0x40, 0x41,
0x60, 0x41,
0x60, 0x39,
0x60, 0x39,
0x60, 0x39,
0x60, 0x31,
0x60, 0x31,
0x60, 0x31,
0x60, 0x31,
0x80, 0x29,
0x80, 0x29,
0x80, 0x29,
0x80, 0x29,
0xa1, 0x29,
0xe1, 0x29,
0x41, 0x32,
0x01, 0x2a,
0xc1, 0x21,
0x81, 0x19,
0x81, 0x19,
0x81, 0x19,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x41, 0x11,
0x41, 0x11,
0x41, 0x11,
0x41, 0x11,
0x21, 0x11,
0x21, 0x11,
0x21, 0x11,
0x21, 0x11,
0x01, 0x11,
0x01, 0x11,
0x01, 0x11,
0xe1, 0x10,
0xe1, 0x10,
0xe1, 0x10,
0xc1, 0x10,
0xc1, 0x10,
0xc1, 0x10,
0xc1, 0x10,
0xa1, 0x10,
0xa1, 0x10,
0xa1, 0x10,
0xa1, 0x10,
0x81, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0xc5, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xe6, 0x08,
0xe7, 0x08,
0x07, 0x09,
0x07, 0x09,
0xe7, 0x08,
0xe6, 0x08,
0xe6, 0x08,
0xe5, 0x10,
0xc5, 0x10,
0xe5, 0x10,
0xe5, 0x10,
0xe4, 0x18,
0xe4, 0x18,
0xe4, 0x18,
0xe4, 0x20,
0xe3, 0x20,
0xe3, 0x28,
0xe3, 0x28,
0xe3, 0x28,
0xe3, 0x30,
0x02, 0x31,
0x02, 0x31,
0x02, 0x39,
0x02, 0x39,
0x02, 0x39,
0x01, 0x39,
0x01, 0x41,
0x01, 0x41,
0x01, 0x41,
0x01, 0x49,
0x21, 0x49,
0x21, 0x49,
0x21, 0x49,
0x20, 0x49,
0x20, 0x49,
0x20, 0x49,
0x20, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x40, 0x49,
0x60, 0x49,
0x60, 0x41,
0x60, 0x41,
0x60, 0x41,
0x60, 0x41,
0x60, 0x39,
0x60, 0x39,
0x60, 0x39,
0x60, 0x31,
0x80, 0x31,
0x80, 0x31,
0x80, 0x31,
0x80, 0x29,
0x80, 0x29,
0x80, 0x29,
0xc0, 0x29,
0x41, 0x32,
0x49, 0xbe,
0xc1, 0x3a,
0x21, 0x2a,
0xc1, 0x21,
0xa1, 0x19,
0xa1, 0x19,
0xa1, 0x19,
0xa1, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x41, 0x11,
0x41, 0x11,
0x41, 0x11,
0x41, 0x11,
0x21, 0x11,
0x21, 0x11,
0x21, 0x11,
0x01, 0x11,
0x01, 0x11,
0x01, 0x11,
0xe1, 0x10,
0xe1, 0x10,
0xe1, 0x10,
0xc1, 0x10,
0xc1, 0x10,
0xc1, 0x10,
0xa1, 0x10,
0xa1, 0x10,
0xa1, 0x10,
0xa1, 0x10,
0x81, 0x10,
0x81, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xe7, 0x08,
0x07, 0x09,
0x08, 0x09,
0x48, 0x09,
0x69, 0x09,
0x28, 0x09,
0x07, 0x09,
0xe6, 0x08,
0xe6, 0x10,
0xe5, 0x10,
0xe5, 0x10,
0xe5, 0x18,
0xe5, 0x18,
0xe4, 0x18,
0xe4, 0x20,
0xe4, 0x20,
0xe4, 0x20,
0xe3, 0x28,
0xe3, 0x28,
0xe3, 0x28,
0x03, 0x31,
0x02, 0x31,
0x02, 0x31,
0x02, 0x39,
0x02, 0x39,
0x02, 0x39,
0x01, 0x41,
0x01, 0x41,
0x21, 0x41,
0x21, 0x49,
0x21, 0x49,
0x21, 0x49,
0x21, 0x49,
0x21, 0x49,
0x41, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x49,
0x60, 0x49,
0x60, 0x49,
0x60, 0x49,
0x60, 0x49,
0x60, 0x41,
0x60, 0x41,
0x60, 0x41,
0x60, 0x41,
0x60, 0x39,
0x60, 0x39,
0x80, 0x39,
0x80, 0x31,
0x80, 0x31,
0x80, 0x31,
0x80, 0x29,
0x80, 0x29,
0xa0, 0x29,
0xc0, 0x29,
0x40, 0x32,
0xc5, 0x84,
0x06, 0x8d,
0x80, 0x32,
0xe0, 0x21,
0xa0, 0x19,
0xa1, 0x19,
0xa1, 0x19,
0xa1, 0x11,
0xa1, 0x11,
0xa1, 0x11,
0xa1, 0x11,
0xa1, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x41, 0x11,
0x41, 0x11,
0x41, 0x11,
0x41, 0x11,
0x21, 0x11,
0x21, 0x11,
0x21, 0x11,
0x01, 0x11,
0x01, 0x11,
0x01, 0x11,
0xe1, 0x10,
0xe1, 0x10,
0xe1, 0x10,
0xc1, 0x10,
0xc1, 0x10,
0xc1, 0x10,
0xa1, 0x10,
0xa1, 0x10,
0xa1, 0x10,
0xa1, 0x10,
0x81, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0x82, 0x10,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x08,
0xc6, 0x00,
0xc7, 0x00,
0xc7, 0x00,
0xe7, 0x00,
0xe7, 0x00,
0x08, 0x01,
0x49, 0x01,
0xcc, 0x09,
0x79, 0x55,
0xaa, 0x09,
0x48, 0x09,
0x07, 0x09,
0xe6, 0x10,
0xe5, 0x10,
0xe5, 0x10,
0xe5, 0x18,
0xe5, 0x18,
0xe4, 0x18,
0xe4, 0x20,
0xe4, 0x20,
0xe4, 0x20,
0xe3, 0x28,
0x03, 0x29,
0x03, 0x31,
0x03, 0x31,
0x02, 0x31,
0x02, 0x39,
0x02, 0x39,
0x02, 0x39,
0x02, 0x41,
0x01, 0x41,
0x21, 0x41,
0x21, 0x49,
0x21, 0x49,
0x21, 0x49,
0x21, 0x49,
0x41, 0x51,
0x41, 0x51,
0x60, 0x59,
0x60, 0x59,
0x60, 0x59,
0x60, 0x59,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x40, 0x51,
0x60, 0x51,
0x60, 0x51,
0x60, 0x51,
0x60, 0x49,
0x60, 0x49,
0x60, 0x49,
0x60, 0x49,
0x60, 0x49,
0x60, 0x41,
0x60, 0x41,
0x80, 0x41,
0x80, 0x39,
0x80, 0x39,
0x80, 0x39,
0x80, 0x39,
0x80, 0x31,
0x80, 0x31,
0xa0, 0x31,
0xa0, 0x29,
0xa0, 0x29,
0xc0, 0x29,
0x40, 0x32,
0x41, 0x4b,
0xaa, 0xc6,
0xe1, 0x3a,
0x20, 0x2a,
0xc0, 0x19,
0xa0, 0x19,
0xa0, 0x19,
0xc0, 0x19,
0xa1, 0x11,
0xa1, 0x11,
0xa1, 0x11,
0xa1, 0x11,
0xa1, 0x11,
0xa1, 0x11,
0xa1, 0x11,
0x81, 0x11,
0x81, 0x11,
0x81, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x61, 0x11,
0x41, 0x11,
0x41, 0x11,
0x41, 0x11,
0x21, 0x11,
0x21, 0x11,
0x21, 0x11,
0x01, 0x11,
0x01, 0x11,
0x01, 0x11,
0xe1, 0x10,
0xe1, 0x10,
0xe1, 0x10,