資源簡介
#include
#include
#define uchar unsigned char
#define uint unsigned int
sbit en1=P3^0; /* L298的Enable A */
sbit s1=P3^2; /* L298的Input 1 */
sbit s2=P3^3; /* L298的Input 2 */
uchar t=0; /* 中斷計數器 */
uchar m1=0; /* 電機1速度值 */
uchar tmp1; /* 電機當前速度值 */
代碼片段和文件信息
評論
共有 條評論