压缩包\Proteus经典例子和中文资料\8051\流水灯\Keil
请问LZ
这里面流水灯嵌入程序的头文件
#include <REGX52.H>
是不是应该改写成
#include <REG52.H>
否则会提示
FlashLED.c(1): warning C318: can't open file 'REGX52.H'
FLASHLED.C(18): error C202: 'P1': undefined identifier
FLASHLED.C(20): error C202: 'P1': undefined identifier
FlashLED.c - 2 Error(s), 1 Warning(s).
改写后
FlashLED.c - 0 Error(s), 0 Warning(s).
请看看