src_565.c
来自「terawin的t103 LCD驱动程序」· C语言 代码 · 共 26 行
C
26 行
#include <reg51.h>
#include "math.h"
#include "common.h"
#include "SRC_565.h"
#include "struct.h"
#include "system.h"
#include "T803_Util.h"
#include "TW803Reg.h"
#include "twowire.h"
#include "Global.h"
#include "RGB565.h"
void SRC_565(void)
{
int i;
I2CWriteByte(TW803_P0, 0x30, 0x02);
I2CWriteByte(TW803_P0, 0x31, 0x60);
I2CWriteByte(TW803_P0, 0xe0, 0xb1);
for (i=0; i<sizeof(ucaZoomAdrP1_RGB565)/sizeof(uCHAR); i++){
I2CWriteByte(TW803_P0, ucaZoomAdrP1_RGB565[i], ucaZoomDataP1_RGB565[i]);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?