pdf-icon

Arduino 上手教程

2. 设备开发 & 案例程序

5. 拓展模块

6. 应用案例

Stamp-S3Bat Arduino 示例程序编译与烧录

1. 准备工作

2. 下载模式

将设备通过 USB 线连接至电脑,长按 PWR 按钮大约 3s,进入下载模式,等待烧录。

3. 端口选择

在 Arduino IDE 中选中对应设备的端口。

4. 程序编译 & 烧录

在 Arduino IDE 工作区粘贴下方代码,点击上传按钮,将自动进行程序编译与烧录。

Hello World

cpp
1 2 3 4 5 6 7 8 9 10 11 12
#include "Arduino.h"

void setup()
{
    Serial.begin(115200);
}

void loop()
{
    delay(1000);
    Serial.println("Hello, world!");
}

5. 相关资源

On This Page