Arduino IDE environment - STAMP-PICO

ESP32 Downloader

Before burning, you need to connect a USB-TTL burning board for STAMP-PIOC, and proceed according to the board silkscreen connect. Install the driver corresponding to the burning board on the PC.

The most convenient way is to Purchase the STAMP-PICO package version with downloader , the line sequence of the matching downloader It is consistent with STAMP-PICO, it can be directly plugged in for programming without wiring. Currently M5 provides downloaders of two driver chip versions, CP210X (applicable to CP2104 version)/CP34X (applicable to CH9102 version) driver compressed package. After decompressing the compressed package, select the installation corresponding to the number of operating systems Package to install. (If you are not sure which USB chip your device uses, you can install two drivers at the same time)

Driver name Applicable driver chip Download link
CP210x_VCP_Windows CP2104 Download
CP210x_VCP_MacOS CP2104 Download
CP210x_VCP_Linux CP2104 Download
CH9102_VCP_SER_Windows CH9102 Download
CH9102_VCP_SER_MacOS v1.7 CH9102 Download

Arduino Development Environment Setup Tutorial

[Click to view] Arduino development environment setup tutorial

M5Stack's board management

    1. Open the Arduino IDE, select File->Preferences->Settings
    1. Copy the M5Stack board management URL below to the Additional Development Board Manager:
    1. Select Tools->Development Board:->Development Board Manager...
    1. In the new pop-up dialog box, enter and search for M5Stack, click Install (If the search fails, you can try to restart the Arduino program)
  • 5.Select Tools->Development board:->M5Stack Arduino, select the corresponding development board configuration according to the device we use (M5Stack-STAMP-PICO).
  • Different hardware devices have different sample program libraries. Please choose to download according to the device you are using. Open the Arduino IDE, and then select Project->Load Library->Library Management...


  • Search for STAMP-PICO and install it, as shown in the figure below. When downloading, please follow the pop-up prompts to install related dependent libraries.

Turn on the LED light

  • Copy the code below to the Arduino IDE, connect STAMP-PICO to the PC and configure the correct port (Tools-> Port-> COMx), click the upload button (->) on the menu bar, The program will be automatically compiled and uploaded to the device. The program will light up the LED lights on STAMP-PICO.

#include "Arduino.h"
#include <FastLED.h>

// How many leds in your strip?
#define NUM_LEDS 1
#define DATA_PIN 27

// Define the array of leds

/* After STAMP-PICO is started or reset
  the program in the setUp () function will be run, and this part will only be run once.
  After STAMP-PICO is started or reset, the program in the setup() function will be executed, and this part will only be executed once. */
void setup() {
  FastLED.addLeds<SK6812, DATA_PIN, RGB>(leds, NUM_LEDS); // GRB ordering is typical

/* 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
After the program in the setup() function is executed, the program in the loop() function will be executed
The loop() function is an endless loop, in which the program will continue to run repeatedly */
void loop() {
  // Turn the LED on, then pause
  leds[0] = 0xf00000;;
  // Now turn the LED off, then pause
  leds[0] = 0x00f000;;
On This Page