⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 src_565.c

📁 这是T118和T103的通用程序
💻 C
字号:
#include <reg51.h>
#include "math.h"
#include "common.h"
#include "SRC_565.h"
#include "system.h"
#include "T803_Util.h"
#include "TW803Reg.h"
#include "twowire.h"
#define __GLOBAL_H__
#include "Global.h"
#define __RGB565_H__
#include "RGB565.h"

void SRC_565(void)
{
	int i,tmp;
    I2CWriteByte(TW803_P0, 0x30, 0x02);
	I2CWriteByte(TW803_P0, 0x31, 0x60);
  	I2CWriteByte(TW803_P0, 0xe0, 0xb1);

	    tmp=I2CReadByte(TW803_P0, 0x32);
		I2CWriteByte(TW803_P0, 0x32,tmp);
	    if(tmp&0x01) return;
 

	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -