idread5.cpp

来自「通过EDID Spec」· C++ 代码 · 共 26 行

CPP
26
字号
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include "idread.h"

extern "C" void READEDID(Byte* buffer, Word device);

void main(void)
{
	int i;
//	Byte LFT_EDID = 0x02;
	Byte tempbuffer[512];
	READEDID(tempbuffer,LFP_EDID);

	printf(" the LCD Vender ID %02X%02Xh\n", tempbuffer[9],tempbuffer[8]);
	printf(" the LCD Product ID %02X%02Xh\n", tempbuffer[11],tempbuffer[10]);
	printf(" ");
	for(i=0x5f;i<=0x64; i++)
	 printf("%c",tempbuffer[i]);
	 printf(" ");
	for(i=0x71; i<=0x79; i++)
	printf("%c",tempbuffer[i]);
	printf("\n");
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?