Files
ros2bookcode/chapt9/example_project/src/main.cpp
2025-02-22 20:45:21 +08:00

13 lines
313 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#include <Arduino.h>
// setup 函数,启动时调用一次
void setup()
{
Serial.begin(115200); // 设置串口波特率
}
// loop 函数setup 后会被重复调用
void loop()
{
Serial.printf("Hello World!\n"); // 打印Hello World!
delay(100); // 延时函数,单位 ms
}