Created
September 22, 2021 10:23
-
-
Save hollyhockberry/c49c656fbcb64c10b72f3c66cc0f2b72 to your computer and use it in GitHub Desktop.
M5Paper draw bitmap file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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