Arduino学习(2)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/github_39611196/article/details/83418893

通过Arduino编译器查看串口数据。

hello world程序:

void setup(){
  Serial.begin(9600);//打开串口,设置波特率为9600bps
}

void loop(){
  Serial.println("Hello World");
  delay(1000);
}

编译、上传,然后打开编译器的Serial Monitor,即可看到输出的“Hello World”

运行结果:

猜你喜欢

转载自blog.csdn.net/github_39611196/article/details/83418893