TEST4.C(12):error C100:unprintable character 0xA3 skipped TEST4.C(12):error C100:unprintable ch//-------------------------------------------------------------// 名称:花样流水灯//-------------------------------------------------------------//

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/06 06:51:06

TEST4.C(12):error C100:unprintable character 0xA3 skipped TEST4.C(12):error C100:unprintable ch//-------------------------------------------------------------// 名称:花样流水灯//-------------------------------------------------------------//
TEST4.C(12):error C100:unprintable character 0xA3 skipped TEST4.C(12):error C100:unprintable ch
//-------------------------------------------------------------
// 名称:花样流水灯
//-------------------------------------------------------------
// 说明:16只LED灯分两组按预设的多种花样变换显示
//-------------------------------------------------------------
#include
#define uchar unsigned char
#define uint unsigned int
uchar code pattern_P0[]=
{
0xFC,0xF9,0xF3,0xE7,0xCF,0x9F,0x3F,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xE7,0xDB,0xBD,0x7E,0xBD,0xDB,0xE7,0xFF,0xE7,0xC3,0x81,0x00,0x81,0xC3,0xE7,0xFF,
0xAA,0x55,0x18,0xFF,0xF0,0x0F,0x00,0xFF,0xF8,0xF1,0xE3,0xC7,0x8F,0x1F,0x3F,0x7F,
0x7F,0x3F,0x1F,0x8F,0xC7,0xE3,0xF1,0xF8,0xFF,0x00,0x00,0xFF,0xFF,0x0F,0xF0,0xFF,
0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0xBF,0xDF,0xEF,0xF7,0xFB,0xFD,0xFE,
0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,
0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF
};
uchar code pattern_P2[]=
{
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0xF9,0xF3,0xE7,0xCF,0x9F,0x3F,0x7F,
0xE7,0xDB,0xBD,0x7E,0xBD,0xDB,0xE7,0xFF,0xE7,0xC3,0x81,0x00,0x81,0xC3,0xE7,0xFF,
0xAA,0x55,0x18,0xFF,0xF0,0x0F,0x00,0xFF,0xF8,0xF1,0xE3,0xC7,0x8F,0x1F,0x3F,0x7F,
0x7F,0x3F,0x1F,0x8F,0xC7,0xE3,0xF1,0xF8,0xFF,0x00,0x00,0xFF,0xFF,0x0F,0xF0,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,
0x7F,0xBF,0xDF,0xEF,0xF7,0xFB,0xFD,0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFC,0xF8,0xF0,0xE0,0xC0,0x80,0x00,
0x00,0x80,0xC0,0xE0,0xF0,0xF8,0xFC,0xFE,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF
};
//-------------------------------------------------------------
// 延时
//-------------------------------------------------------------
void DelayMS(uint x)
{
uchar t;
while(x--) for(t =0;t

TEST4.C(12):error C100:unprintable character 0xA3 skipped TEST4.C(12):error C100:unprintable ch//-------------------------------------------------------------// 名称:花样流水灯//-------------------------------------------------------------//
uchar code pattern_P0[]=
{
0xFC,0xF9,0xF3,0xE7,0xCF,0x9F,0x3F,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
0xE7,0xDB,0xBD,0x7E,0xBD,0xDB,0xE7,0xFF,0xE7,0xC3,0x81,0x00,0x81,0xC3,0xE7,0xFF,
uchar code pattern_P2[]=
{
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFC,0xF9,0xF3,0xE7,0xCF,0x9F,0x3F,0x7F,
0xE7,0xDB,0xBD,0x7E,0xBD,0xDB,0xE7,0xFF,0xE7,0xC3,0x81,0x00,0x81,0xC3,0xE7,0xFF,
这四行后多了个“,”,去掉就行了(在KEIL 看不到时,是因为输入的是中文里“,”,在前面加“//”就能看到了)