pdf-icon

Arduino Quick Start

AtomS3 Display

M5AtomS3 use M5GFX library as the screen driver, refer to the following API & cases can realize simple display, get more API content can refer to M5GFX source code.
cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "M5AtomS3.h"
void setup() {
AtomS3.begin();
AtomS3.Display.setTextDatum(middle_center);
AtomS3.Display.fillScreen(WHITE);
AtomS3.Display.fillCircle(AtomS3.Display.width() / 2,
AtomS3.Display.height() / 2, 30, ORANGE);
AtomS3.Display.drawString("Hello", AtomS3.Display.width() / 2,
AtomS3.Display.height() / 2);
}
void loop() {
}
On This Page