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

標題: arduino gps 測試程序 [打印本頁]

作者: dchjdjs    時間: 2017-6-19 11:15
標題: arduino gps 測試程序
//此處為了兼容其他的多串口Arduino板子
#define GPSSerial  Serial
#define DEBUGSerial Serial


void setup()        //初始化內容
{
  GPSSerial.begin(9600);                        //定義波特率9600,的GPS模塊輸出的波特率一致
  DEBUGSerial.begin(9600);  
  DEBUGSerial.println("大家好");
  DEBUGSerial.println("Wating...");
}

void loop()                //主循環
{
  while (GPSSerial.available()) {   
     DEBUGSerial.write(GPSSerial.read());//收到GPS數據則通過Serial輸出
  }


}

GPS_UNO_Test.zip

50.72 KB, 下載次數: 10, 下載積分: 黑幣 -5

gps Arduino 測試程序






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