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

📄 main.c

📁 冷火MCF52255开发板精华资料
💻 C
字号:
/*广州穗佳电子科技有限公司
  冷火MCF52255多功能开发板
  更多精彩产品,关注穗佳电子淘宝店
  http://sogadz.taobao.com*/
#include "support_common.h" /* include peripheral declarations and more */
#if (CONSOLE_IO_SUPPORT || ENABLE_UART_SUPPORT) 
/* Standard IO is only possible if Console or UART support is enabled. */
#include <stdio.h>
#endif
#include "OLED12864.h" 
#include "ADC.h"
#include "PIT.h"
#include "PWM.h"
#include "TFT.h"
#include "NRF24L01.h"
#include "UART.h"

#define uchar unsigned char 
#define uint unsigned int 




/*********************************************/  //延时     /*********************************************/
void delay(int xms)        //xms毫秒延时
{
    int ii,jj;
    
    for(ii=0;ii<xms;ii++)
    for(jj=0;jj<2000;jj++); 
       
}
void delay_us(int xus)     //xus微秒延时
{
    int ii,jj;
    
    for(ii=0;ii<xus;ii++)
    for(jj=0;jj<2;jj++);    
}


/**********************************************************************************************************
**********************************************************************************************************/

void main(void) 
{
	
	int counter;
	int i=0,j=0,k=0;

    //******************OLED******************
    OLCD_init();
    while(1) 
  	{  

           
		LCD_Print(12,0,"广州Beyond科技"); 
		LCD_Print(15,2,"飞思卡尔智能车");      
		LCD_Print(43,4,"专营店");
		LCD_Print(15,6,"智能车首选液晶");
		delay(2000);
		LCD_CLS();
		
		LCD_P8x16Str(48,4,"OLED");          
		LCD_P6x8Str(16,6,"beyond-freescale");                          
		LCD_P6x8Str(34,7,"2012-10-01"); 

		delay(2000);
		LCD_CLS();
		Draw_BMP(0,0,64,7,beyond96x64);  //显示图片
		
		delay(2000);
		LCD_CLS();
		Draw_BMP(64,0,128,7,beyond64x64);
		
		delay(2000);
		LCD_CLS();
  	}
  
} 


⌨️ 快捷键说明

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