欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標(biāo)題: arduino舵機控制程序 [打印本頁]

作者: Linnnxw    時間: 2019-5-11 17:10
標(biāo)題: arduino舵機控制程序
控制舵機轉(zhuǎn)動角度程序
修改其中數(shù)據(jù)就可

#include <SoftwareSerial.h>    //包含軟串口頭文件,硬串口通信文件庫系統(tǒng)自帶   
/*******************************一些宏定義****************************************/
SoftwareSerial mySerial(A6,A7); //創(chuàng)建一個軟串口的類,模擬引腳4,5分別代表 RX, TX引腳 AR多功能板

void setup() {
     mySerial.begin(115200);         //設(shè)置軟串口波特率
  // put your setup code here, to run once:

}

void loop() {
   mySerial.print("#000P2000T1000!");
delay(10000);
  mySerial.print("#000P1500T1000!");
  delay(1000);
  // put your main code here, to run repeatedly:

}






歡迎光臨 (http://www.raoushi.com/bbs/) Powered by Discuz! X3.1