程序如下
void main()
{
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
LCD_1602_Start();
LCD_1602_Position(0,0);
LCD_1602_PrintString("PSOC and LCD1602");
LCD_1602_Position(1,0);
LCD_1602_PrintString("psoc.**.com");
/* CYGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
for(;;)
{
/* Place your application code here. */
}
}
|