tlora-t3s3-epaper: e-ink startup and build cleanup (#10973)
* T3s3 Eink * Update SerialConsole.cpp * Update * Update SerialConsole.h * Update EInkDisplay2.cpp
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#if defined(USE_EINK) && !defined(USE_EINK_PARALLELDISPLAY)
|
||||
#include "EInkDisplay2.h"
|
||||
#include "FSCommon.h"
|
||||
#include "SPILock.h"
|
||||
#include "main.h"
|
||||
#include <SPI.h>
|
||||
@@ -214,9 +215,23 @@ bool EInkDisplay::connect()
|
||||
defined(CROWPANEL_ESP32S3_5_EPAPER) || defined(CROWPANEL_ESP32S3_4_EPAPER) || defined(CROWPANEL_ESP32S3_2_EPAPER) || \
|
||||
defined(MINI_EPAPER_S3)
|
||||
{
|
||||
#if defined(TLORA_T3S3_EPAPER)
|
||||
// T3-S3 shares HSPI with the SD card; preconfigure the panel control pins.
|
||||
hspi = &SPI_HSPI;
|
||||
pinMode(PIN_EINK_CS, OUTPUT);
|
||||
pinMode(PIN_EINK_DC, OUTPUT);
|
||||
pinMode(PIN_EINK_BUSY, INPUT);
|
||||
if (PIN_EINK_RES >= 0) {
|
||||
pinMode(PIN_EINK_RES, OUTPUT);
|
||||
digitalWrite(PIN_EINK_RES, HIGH);
|
||||
}
|
||||
digitalWrite(PIN_EINK_CS, HIGH);
|
||||
digitalWrite(PIN_EINK_DC, HIGH);
|
||||
#else
|
||||
// Start HSPI
|
||||
hspi = new SPIClass(HSPI);
|
||||
hspi->begin(PIN_EINK_SCLK, -1, PIN_EINK_MOSI, PIN_EINK_CS); // SCLK, MISO, MOSI, SS
|
||||
#endif
|
||||
// VExt already enabled in setup()
|
||||
// RTC GPIO hold disabled in setup()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user