28BYJ-48步進(jìn)電機(jī)加ULN2003驅(qū)動(dòng)的51單片機(jī)的代碼
#include
#define uint unsigned int
#define ucher unsigned char
unsigned char code ZZ[8]={0x09,0x01,0x03,0x02,0x06,0x04,0x0c,0x08};//28BYJ-48正時(shí)鐘旋轉(zhuǎn)相序表
unsigned char code FZ[8]={0x08,0x0c,0x04,0x06,0x02,0x03,0x01,0x09};//28BYJ-48逆時(shí)鐘旋轉(zhuǎn)相序表
void delay(unsigned int n)//毫秒級(jí)延時(shí)
{
}
void BGdelay(unsigned int n)//步進(jìn)延時(shí)
{
}
void main(void)//入口函數(shù)
{
}
評(píng)論