Skip to content

Instantly share code, notes, and snippets.

@hollyhockberry
Created September 22, 2021 10:23
Show Gist options
  • Save hollyhockberry/c49c656fbcb64c10b72f3c66cc0f2b72 to your computer and use it in GitHub Desktop.
Save hollyhockberry/c49c656fbcb64c10b72f3c66cc0f2b72 to your computer and use it in GitHub Desktop.
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);
canvas.pushCanvas(0, 0, UPDATE_MODE_GC16);
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment