实例-hello world

2019-01-27  本文已影响0人  芝士和辣翅

材料:arduino主板、usb接口线

代码:

void setup() {

  // put your setup code here, to run once:

  Serial.begin(9600);//设置波特率为9600

}

void loop() {

  // put your main code here, to run repeatedly:

  Serial.println("Hello world");

}

结果:

tx灯常亮。

在串口监视器里可以看到一直在输出的Hello world。

上一篇 下一篇

猜你喜欢

热点阅读