#include<STC89C5xRC.H> //通用89C51头文件
sbit METER0=P0^0; //定义电机正极
sbit METER1=P0^1; //定义电机负极
sbit KEY0=P3^2; //定义开关
sbit KEY1=P3^3; //定义开关
/*********************************************************************
主函数
*********************************************************************/
void main (void)
{
P0M1=0X00;
DELAY_MS(100) ;
P0M0=0X01;
while(1)
{
METER0=0;
}
}
电机拖动.C(75): error C202: 'P0M1': undefined identifier
电机拖动.C(77): error C202: 'P0M0': undefined identifier
Target not created