English
English
简体中文
日本語
pdf-icon

Arduino Quick Start

2. Devices & Examples

5. Extensions

6. Applications

Stamp-C5 Arduino Program Compilation & Upload

1. Preparation

2. Port Selection

Connect Stamp-C5 to your computer with a USB cable, then select the corresponding device port in Arduino IDE. If the port is not displayed, check whether the USB cable supports data transfer and confirm that the system has recognized the USB CDC serial device.

3. Program Compilation & Upload

Enter the code below in the Arduino IDE workspace and click the upload button. The program will be compiled and uploaded automatically.

cpp
1 2 3 4 5 6 7 8 9 10 11
#include <M5Unified.h>

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

void loop() {
    Serial.println("hello world!");
    delay(2000);
}

After a successful upload, open the serial monitor and set the baud rate to 115200. You should see the device print "hello world!" every 2 seconds.

On This Page