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

📄 lcdtest.c

📁 mips cpu 君正4730 4740的 ucosii 源码 包括系统 摄像头 网络 文件系统等等测试
💻 C
字号:
#define NR_PALETTE	256struct jzfb_info {        unsigned int cfg;	/* panel mode and pin usage etc. */	unsigned int w;	unsigned int h;	unsigned int bpp;	/* bit per pixel */	unsigned int fclk;	/* frame clk */	unsigned int hsw;	/* hsync width, in pclk */	unsigned int vsw;	/* vsync width, in line count */	unsigned int elw;	/* end of line, in pclk */	unsigned int blw;	/* begin of line, in pclk */	unsigned int efw;	/* end of frame, in line count */	unsigned int bfw;	/* begin of frame, in line count */	unsigned char *cpal;	/* Cacheable Palette Buffer */	unsigned char *pal;	/* Non-cacheable Palette Buffer */	unsigned char *cframe;	/* Cacheable Frame Buffer */	unsigned char *frame;	/* Non-cacheable Frame Buffer */	struct {		unsigned char red, green, blue;	} palette[NR_PALETTE];};extern struct jzfb_info jzfb;void lcd_test(){	unsigned int *frame;	unsigned int i;			jzlcd_init();	frame = jzfb.frame;	printf("lcd test = 0x%x 0x%x 0x%x\r\n",frame,jzfb.frame,&jzfb);	for(i = 0;i < 10;i++)	{		printf("lcd test = 0x%x \r\n",frame[i * 480]);	}	for(i = 0;i < 480 * 272 / 3;i++)	{		frame[i] = 0x000000ff;	}	for(;i < 480 * 272 / 3 * 2;i++)	{		frame[i] = 0x0000ff00;	}	for(;i < 480 * 272 / 3 * 3;i++)	{		frame[i] = 0x00ff0000;	}	for(i = 0;i < 10;i++)	{		printf("lcd test = 0x%x \r\n",frame[i * 480]);	} 		}

⌨️ 快捷键说明

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