材料: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。

网友评论