📄 main.c
字号:
#include <stdlib.h>
#include <string.h>
#include "option.h"
#include "def.h"
#include "44b.h"
#include "44blib.h"
#include "lcd.h"
#include "lcdlib.h"
#include "glib.h"
#include "slib.h"
extern int Image$$RO$$Limit;
extern int Image$$RW$$Base;
//static int delayLoopCount=400;
void Main(void)
{
char aa;
rSYSCFG=CACHECFG; // Using 8KB Cache
Port_Init();
Uart_Init(0,57600);
Delay(1000);
Uart_Select(0); //Select UART0
Uart_Printf("\n* Lcd Demo for CC44B0X V1.3");
Uart_Printf("\n* http://www.sxcckj.com");
Uart_Printf("\n* Data: 2008.11");
Uart_Printf("\n* MCLK=%dMHz",MCLK/1000000);
Uart_Printf("\n* COM:115.2kbps,8Bit,NP,UART0");
Uart_Printf("\n* RO_Limit=0x%8x",Image$$RO$$Limit);
Uart_Printf("\n* RW_BASE =0x%8x",Image$$RW$$Base);
Uart_Printf("\n******************************************************");
Lcd_Init(MODE_MONO);
Slib_ClearScr();
Slib_Init();
Slib_Printf("\n***********************************************");
Slib_Printf("\n # ####### ### ### ");
Slib_Printf("\n ### ## ## #### #### ");
Slib_Printf("\n ## ## ## ## ## ## ## ## ");
Slib_Printf("\n ## ## ####### ## ### ## ");
Slib_Printf("\n ######### ## ## ## # ## ");
Slib_Printf("\n ## ## ## ## ## ## ****");
Slib_Printf("\n### ### #### #### #### #### ****");
Slib_Printf("\n**********************************************");
Slib_Printf("\n* Lcd Demo for CC44B0X V1.3 ");
Slib_Printf("\n* http://www.sxcckj.com ");
Slib_Printf("\n* power by shenyae86 ");
Slib_Printf("\n* Data: 2008.11 ");
while(1)
{
Uart_Printf("\n <LCD Test>PRESS ANY KEY!");
Uart_Printf("\n D(d)>>LCD Lcd_Display");
Uart_Printf("\n 1 >>LCD Mono TEST");
Uart_Printf("\n 4 >>LCD G4 TEST");
Uart_Printf("\n T(t)>>LCD Text TEST");
aa= Uart_Getch();
switch(aa)
{
case 'D':
case 'd':
Lcd_Display();
break;
case '1':
Test_LcdMono();
case '4':
Test_LcdG4();
break;
case 'T':
case 't':
Test_LcdStr();
break;
default:
break;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -