static void resync(displayPort_t *displayPort) { UNUSED(displayPort); max7456RefreshAll(); displayPort->rows = max7456GetRowsCount() + displayPortProfileMax7456()->rowAdjust; displayPort->cols = 30 + displayPortProfileMax7456()->colAdjust; }
static int clearScreen(displayPort_t *displayPort) { UNUSED(displayPort); max7456Invert(displayPortProfileMax7456()->invert); max7456Brightness(displayPortProfileMax7456()->blackBrightness, displayPortProfileMax7456()->whiteBrightness); max7456ClearScreen(); return 0; }
static long cmsx_menuOsdOnEnter(void) { #ifdef USE_OSD_PROFILES osdConfig_osdProfileIndex = osdConfig()->osdProfileIndex; #endif #ifdef USE_MAX7456 displayPortProfileMax7456_invert = displayPortProfileMax7456()->invert; displayPortProfileMax7456_blackBrightness = displayPortProfileMax7456()->blackBrightness; displayPortProfileMax7456_whiteBrightness = displayPortProfileMax7456()->whiteBrightness; #endif return 0; }