求;用51单片机编写最简单的程序,C语言,使步进电机转动,间歇式转动,快慢交替转动

2024-11-22 13:36:45
推荐回答(1个)
回答(1):

编一个简单的吧,控制两相电机。#include#define uchar unsigned charuchar step[8]={0x01,0x03,0x02,0x06,0x04,0x0c,0x08,0x09};void delay(uchar sd){uchar i,j;for(i=0;i