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

📄 sharp_64vga_alpha_blend_test.c

📁 coldfire的mcf5329的程序
💻 C
字号:
/*
 * File:		main.c
 * Purpose:		Configure LCDC module and display an image 
 *
 */
/********************************************************************/
#include "src/common/common.h"
#include "LCDC_init_plane.h"
#include "people_640_480_18bpp.h"	
#include "orange_640_480_18bpp.h"	
	
int main(void)
{ 
uint32 i;
uint8 blend;

  	Configure_VEEEN_ON(); 
    Configure_LCD_Ports();
    Configure_Bursting();
    LCDC_Init(TFT_PANEL, SHARP_104VGA, BPP18, ACD_DIV_0, 0xA);   
    LCDC_Display_Image(people_640_480_18bpp);

	LCDCGW_Display_Image(orange_640_480_18bpp);

    LCDC_Enable(); 
    
    blend = 250;

    for(;;)
    {
    	while (blend != 0x00)
    	{
    		/* wait */
    		for(i=0; i<0x0003FFFF; i++); 
	
    		blend = blend - 10;
    		MCF_LCDC_LGWCR = ( MCF_LCDC_LGWCR_GWAV(blend) | MCF_LCDC_LGWCR_GWE );
    	}
    		
    	while (blend != 250)
    	{
    		/* wait */
    		for(i=0; i<0x0003FFFF; i++); 
	
    		blend = blend + 10;
    		MCF_LCDC_LGWCR = ( MCF_LCDC_LGWCR_GWAV(blend) | MCF_LCDC_LGWCR_GWE );
    	}
    }
    	
}

⌨️ 快捷键说明

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