Skip to content

Instantly share code, notes, and snippets.

View hollyhockberry's full-sized avatar

hollyhockberry

View GitHub Profile
@hollyhockberry
hollyhockberry / main.cpp
Created September 26, 2021 11:02
M5Paper: draw bitmap file with M5GFX
#include <M5EPD.h>
#include <M5GFX.h>
// SDカードに以下のファイルを用意
// /inaba.bmp 540x540 24bit
// /inaba2.bmp 270x270 24bit
void setup() {
M5.begin();
@hollyhockberry
hollyhockberry / main.cpp
Created September 22, 2021 10:23
M5Paper draw bitmap file
#include <M5EPD.h>
void setup() {
M5.begin();
M5.EPD.SetRotation(90);
M5.EPD.Clear(true);
M5EPD_Canvas canvas(&M5.EPD);
canvas.createCanvas(540, 960);
canvas.drawBmpFile(SD, "/inaba.bmp", 0, 0);