// // Buffers / VScreens // #define NUM_BUFFERS 3 // Number of multiple buffers to be used #define NUM_VSCREENS 1 // Number of virtual screens to be used
void LCD_X_Config(void) { int i;
// // At first initialize use of multiple buffers on demand // #if (NUM_BUFFERS > 1) for (i = 0; i < GUI_NUM_LAYERS; i++) { GUI_MULTIBUF_ConfigEx(i, NUM_BUFFERS); } #endif // // Set display driver and color conversion for 1st layer // GUI_DEVICE_CreateAndLink(DISPLAY_DRIVER_0, COLOR_CONVERSION_0, 0, 0); // }
int LCD_X_DisplayDriver(unsigned LayerIndex, unsigned Cmd, void * pData) { case LCD_X_SHOWBUFFER: { // // Required if multiple buffers are used. The 'Index' element of p contains the buffer index. // LCD_X_SHOWBUFFER_INFO * p;