#define TLEDS 20//每个花样状态持续时间,以50mS为单位
#define NUM_OF_LED_S 4//每种模式LED花样数ue42d?
typedef unsigned char uchar;
typedef unsigned int uint;
data uchar led_array_num;//当前模式下,LED花样状态序号
data uchar music_array_num;//音符的序号
data uchar i;//模式号
data uchar t_count_led;//用于LED状态持续时间计时
data uint t_count_music;//
data uint t_yinfu;//音符持续时间
uchar code led_array_p0[4][NUM_OF_LED_S]={{0xc0,0xc0,0xc0,0xc0},{0x38,0x38,0x38,0x38},{0x05,0x07,0x02,0x07},{0xff,0x81,0xff,0xff}};
uchar code led_array_p2[4][NUM_OF_LED_S]={{0x07,0x0b,0x0d,0x0e},{0x07,0x09,0x0e,0x00},{0x06,0x09,0x06,0x00},{0x07,0x09,0x0e,0x00}};
uchar code music_array_h[4][128]={{0xfc,0xfc,0xfc,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfe,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,