Merge pull request #243 from recrof/dev

initial support for Elecrow ThinkNode M1
This commit is contained in:
ripplebiz 2025-05-05 13:17:32 +10:00 committed by GitHub
commit 458f309065
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 575 additions and 19 deletions

View file

@ -1,11 +1,15 @@
#include "GxEPDDisplay.h"
#ifndef DISPLAY_ROTATION
#define DISPLAY_ROTATION 3
#endif
bool GxEPDDisplay::begin() {
display.epd2.selectSPI(SPI1, SPISettings(4000000, MSBFIRST, SPI_MODE0));
SPI1.begin();
display.init(115200, true, 2, false);
display.setRotation(3);
display.setRotation(DISPLAY_ROTATION);
#ifdef TECHO_ZOOM
display.setFont(&FreeMono9pt7b);
#endif