?? main.c
字號:
/*廣州穗佳電子科技有限公司
冷火MCF52255多功能開發(fā)板
更多精彩產(chǎn)品,關注穗佳電子淘寶店
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 + -