Arduino IDE environment - STAMP-C3

STAMP-C3 Development Environment Setup Tutorial

[Click to view] STAMP-C3 development environment setup tutorial

STAMP-C3 Library Installation Management

[Click to view] STAMP-C3 Library Installation Management

Hello World

  • Copy the code below to the Arduino IDE, connect STAMP-C3 to the PC and configure the correct port (Tools-> Port-> COMx), click the upload button (->) on the menu bar, the program will It will be automatically compiled and uploaded to the device. The program will display the words "Hello Waorld" on the serial.
#include "Arduino.h"
/* After STAMP-C3 is started or reset the program in the setUp ()
function will be run, and this part will only be run once.
在 STAMP-C3 启动或者复位后,即会开始执行setup()函数中的程序,该部分只会执行一次。
*/
void setup() {
   Serial.begin(115200);
}

/* After the program in setup() runs, it runs the program in loop()
The loop() function is an infinite loop in which the program runs repeatedly
在setup()函数中的程序执行完后,会接着执行loop()函数中的程序
loop()函数是一个死循环,其中的程序会不断的重复运行 */
void loop() {
   Serial.println("Hello World");
   delay(1000);
}