Arduino IDE environment - M5-CoreInk

Driver Installation

Click the link below to download the driver that matches the operating system. There are currently two driver chip versions, CP210X (for CP2104 version)/CP34X (for CH9102 version) driver compressed package. After decompressing the compressed package, select the installation package corresponding to the number of operating systems to install. (If you are not sure which USB chip your device uses, you can install two drivers at the same time. During the installation process of CH9102_VCP_SER_MacOS, an error may occur, but the installation is actually completed, just ignore it.)

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 CH9102 Download


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, and select the corresponding development board configuration according to the device we are using (M5Stack-Paper).
  • 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...

For M5-CoreInk

  • Search for CoreInk and install it, as shown in the figure below. When downloading, please follow the pop-up prompts to install related dependent libraries.
  • Search for M5Stack-CoreInk in the pop-up dialog box -> click Install

Hello World

  • Copy the code below to the Arduino IDE, connect M5-CoreInk 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 print the string "Hello World" on the screen of M5-CoreInk.

#include "M5CoreInk.h"

Ink_Sprite InkPageSprite(&M5.M5Ink);

void setup() {

    if( !M5.M5Ink.isInit())
        Serial.printf("Ink Init faild");
        while (1) delay(100);
    //creat ink refresh Sprite
    if( InkPageSprite.creatSprite(0,0,200,200,true) != 0)
        Serial.printf("Ink Sprite creat faild");
    InkPageSprite.drawString(35,50,"Hello World!");

void loop() {



On This Page