单片机 步进电机 驱动程序 ULN2003 28BYJ-48 5线4相电机 PIC16F877A单片机
staticunsignedcharFFW[]={0x01,0x03,0x02,0x06,0x04,0x0c,0x08,0x09};staticunsignedcharREV[]={0x09,0x08,0x0c,0x04,0x06,0x02,0x03,0x01};voidSETP_MOTOR_FFW(unsignedcharn)//正转n圈{unsignedchari,j;for(i=0;i<5*