数据流用工具生成的,qq.c文件
修改3歌地方就可以横屏了
LCD_ConfDefaults.h中的
#ifndef LCD_MIRROR_X
#define LCD_MIRROR_X (1) /* If active: X -> -X */
#endif
#ifndef LCD_MIRROR_Y
#define LCD_MIRROR_Y (0) /* If active: Y -> -Y */
#endif
#ifndef LCD_SWAP_XY
#define LCD_SWAP_XY (1) /* If active: X <-> Y */
#endif
LCDConf.h中的
#define LCD_XSIZE (320) /* X-resolution of LCD, Logical coor. */
#define LCD_YSIZE (240) /* Y-resolution of LCD, Logical coor. */
LCDDummy.c中的
void LCD_L0_SetPixelIndex(int x, int y, int PixelIndex) {
// ili9320_SetPixelIndex(x,y,PixelIndex);
/* Convert logical into physical coordinates (Dep. on LCDConf.h) */
#if LCD_SWAP_XY | LCD_MIRROR_X| LCD_MIRROR_Y
int xPhys = LOG2PHYS_X(x, y);
int yPhys = LOG2PHYS_Y(x, y);
#else
#define xPhys x
#define yPhys y
#endif
//ili9320_PutPixel(xPhys, yPhys, PixelIndex,0);
ili9320_SetPixelIndex(xPhys,yPhys,PixelIndex);
}
、、、、、、、、、虽然还不懂怎么弄触摸屏求高手指点啊 |