
#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
void delay(unsigned int x); //開始宣告delay副程式
void main(void)
{
while(1) //while 迴圈開頭
{
PRT0DR=0x10; // LED 亮
delay(1000);
PRT0DR=0x00; // LED 滅
delay(1000);
}
}

