摘要: #include <reg52.h>typedef unsigned char uchar;uchar direction = 0; //0为正转,1为反转uchar onoff = 0; //关为0,开为1uchar n = 0; //每次定时器中断触发时n++,当n==max时电机转动1/4uc 阅读全文
posted @ 2018-10-09 21:51 蓝蝠-水晶之恋 阅读(224) 评论(0) 推荐(0) 编辑