void osdInit(void) { char x, string_buffer[30]; armState = ARMING_FLAG(ARMED); max7456Init(masterConfig.osdProfile.video_system); max7456ClearScreen(); // display logo and help x = 160; for (int i = 1; i < 5; i++) { for (int j = 3; j < 27; j++) { if (x != 255) max7456WriteChar(j, i, x++); } } sprintf(string_buffer, "BF VERSION: %s", FC_VERSION_STRING); max7456Write(5, 6, string_buffer); max7456Write(7, 7, "MENU: THRT MID"); max7456Write(13, 8, "YAW RIGHT"); max7456Write(13, 9, "PITCH UP"); max7456RefreshAll(); refreshTimeout = 4 * REFRESH_1S; }
static int writeChar(displayPort_t *displayPort, uint8_t x, uint8_t y, uint8_t c) { UNUSED(displayPort); max7456WriteChar(x, y, c); return 0; }