Content originally posted in LPCWare by jeffh on Fri Jul 26 15:54:29 MST 2013
Thanks. I will try to put the frame buffers in internal RAM. Is it possible to configure the LCD to only use 128x128 of the actual 240x320 size so I can fit the buffer into internal RAM? I tried changing the board init settings:
const LCD_Config_T MCB4300_LCD = {
8,/*!< Horizontal back porch in clocks */
4,/*!< Horizontal front porch in clocks */
4,/*!< HSYNC pulse width in clocks */
128,//240,/*!< Pixels per line */
4,/*!< Vertical back porch in clocks */
3,/*!< Vertical front porch in clocks */
4,/*!< VSYNC pulse width in clocks */
128,//320,/*!< Lines per panel */
0,/*!< Invert output enable, 1 = invert */
1,/*!< Invert panel clock, 1 = invert */
1,/*!< Invert HSYNC, 1 = invert */
1,/*!< Invert VSYNC, 1 = invert */
1,/*!< AC bias frequency in clocks (not used) */
6,/*!< Maximum bits per pixel the display supports */
LCD_TFT,/*!< LCD panel type */
LCD_COLOR_FORMAT_RGB,/*!< BGR or RGB */
0/*!< Dual panel, 1 = dual panel display */
};
and different emWin settings:
// Display orientation
//
//#define DISPLAY_ORIENTATION 0
//#define DISPLAY_ORIENTATION (GUI_MIRROR_X | GUI_MIRROR_Y)
#define DISPLAY_ORIENTATION (GUI_SWAP_XY | GUI_MIRROR_Y)
//#define DISPLAY_ORIENTATION (GUI_SWAP_XY | GUI_MIRROR_X)
but the resulting image is always corrupted.