22 lines
539 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "sys.h"
//嵌入式开发网
//淘宝网站http://mcudev.taobao.com
//==================================如何切换横竖屏显示=======================================//
//打开Lcd_Driver.h头文件修改宏#define USE_HORIZONTAL 值为0使用竖屏模式.1,使用横屏模式
//===========================模拟SPI总线驱动==========================================//
//定义LCD的尺寸
#if USE_HORIZONTAL==1 //使用横屏
#define X_MAX_PIXEL 160
#define Y_MAX_PIXEL 128
#else
#define X_MAX_PIXEL 128
#define Y_MAX_PIXEL 160
#endif