其实,现在我用Arduino已经实现了更加复杂的功能,更不用说这个简单的小测试。只是最初自己尝试写下的TDL中还有一个Hello World的小项目。

         实现一个最简单的hello world输出,很简单的一个方法就是使用串口打印了。

         设计代码如下:

void setup()
{
    // put your setup code here, to run once:
    Serial.begin(9600);
    Serial.println("hello world");
}

void loop()
{
    // put your main code here, to run repeatedly:
}

         编译之后的运行效果:

098_使用Arduino实现hello world_串口

         实现起来还是很简单的,整理出这个最简单的Arduino程序,或许会对其他人有点参考的意义吧。