#include <iocc2530.h>
#include "lcd.h"
#define OSC_PD BV(2)
#define XOSC_STB BV(6) /* XOSC: powered, stable=1 */
#define HFRC_STB BV(5) /* HFRCOSC: powered, stable=1 */
/* CLKCONCMD bit definitions */
#define OSC BV(6)
#define CLKCONCMD_32MHZ (0)
#define CLKCONCMD_16MHZ (CLKSPD(1) | TICKSPD(1) | OSC)
#define OSC_32KHZ 0x00
void main(void)
{
CLKCONCMD = 0;
SLEEPCMD |= OSC_PD; /* turn off 16MHz RC */
HalLcd_HW_Init(); //屏幕初始化函数
ClearScreen(0x001f);
LCD_PutString(8,00,"因仑电子科技enlern",Yellow,Red);
//x表示LCD的横向的像素点,y表示LCD竖向的像素点,*s是我们需要显示的字符串,fColor表示文字的颜色,bColor表示文字背景的颜色。
while(1)
{
LCD_PutString(8,24,"你好 物联网IOT ",Yellow,Red);
}
}