Arduino Quick Start
M5StampS3
board.M5Unified
, M5GFX
, Sensirion I2C SEN5X
, and Sensirion I2C SCD4x
driver libraries.In the Arduino IDE, create a new sketch and paste the Hello World example code below. Compile and upload it to the device; the display and serial monitor will show “HelloWorld!”
#include <M5Unified.h>
void setup() {
auto cfg = M5.config();
M5.begin(cfg);
M5.Display.setTextSize(3);
M5.Display.println("HelloWorld!");
Serial.println("Hello World!!!");
}
void loop() {
}
GitHub
Arduino API & Examples