BV: display version on screen when booting
This commit is contained in:
parent
7fc6551dfe
commit
41db753338
|
@ -289,6 +289,22 @@ void main(void)
|
|||
sleep_ms(10); // wait a bit until the display is ready
|
||||
busvoodoo_oled_setup(); // setup OLED display
|
||||
|
||||
// display version
|
||||
busvoodoo_oled_clear();
|
||||
busvoodoo_oled_text_left("BusVoodoo");
|
||||
char str[20];
|
||||
snprintf(str, sizeof(str), "fl: %s", busvoodoo_full ? "full" : "light");
|
||||
busvoodoo_oled_text_pos(1, 16+(fonts[FONT_KING10].height+2)*1, FONT_KING10, str);
|
||||
snprintf(str, sizeof(str), "hw: %c", busvoodoo_version);
|
||||
busvoodoo_oled_text_pos(1, 16+(fonts[FONT_KING10].height+2)*2, FONT_KING10, str);
|
||||
snprintf(str, sizeof(str), "fw: %04u-%02u-%02u\n", BUILD_YEAR, BUILD_MONTH, BUILD_DAY);
|
||||
busvoodoo_oled_text_pos(1, 16+(fonts[FONT_KING10].height+2)*3, FONT_KING10, str);
|
||||
snprintf(str, sizeof(str), "bus.cuvoodoo.info");
|
||||
busvoodoo_oled_text_pos((127-((fonts[FONT_KING8].width+1)*strlen(str)))/2, 63, FONT_KING8, str);
|
||||
busvoodoo_oled_update();
|
||||
sleep_ms(500);
|
||||
busvoodoo_oled_clear();
|
||||
|
||||
// setup default mode
|
||||
switch_mode(NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue