电机的双向转动 #include #include #define uchar unsigned char #define unit unsigned int sbit EN1=P1^0; sbit EN2=P1^1; sbit F1=P1^2; sbit F2=P1^3; sbit F3=P1^4; sbit F