wio-l1-eink initial support

This commit is contained in:
Florent 2025-09-20 21:45:13 +02:00
parent 757ff9fb55
commit 59ea6cdb89
6 changed files with 101 additions and 6 deletions

View file

@ -8,7 +8,11 @@
#include <helpers/AutoDiscoverRTCClock.h>
#include <helpers/ArduinoHelpers.h>
#ifdef DISPLAY_CLASS
#include <helpers/ui/SH1106Display.h>
#if defined(WIO_TRACKER_L1_EINK)
#include <helpers/ui/GxEPDDisplay.h>
#else
#include <helpers/ui/SH1106Display.h>
#endif
#include <helpers/ui/MomentaryButton.h>
#endif
#include <helpers/sensors/EnvironmentSensorManager.h>

View file

@ -52,6 +52,15 @@ const uint32_t g_ADigitalPinMap[] = {
// VBAT ENABLE
4, // D30 BAT_CTL
// EINK
13, // 31 SCK
14, // 32 RST
15, // 33 MOSI
16, // 34 DC
17, // 35 BUSY
19, // 36 CS
0xFF, // 37 MISO
};
void initVariant() {

View file

@ -12,8 +12,8 @@
#include "WVariant.h"
#define PINS_COUNT (33)
#define NUM_DIGITAL_PINS (33)
#define PINS_COUNT (38)
#define NUM_DIGITAL_PINS (38)
#define NUM_ANALOG_INPUTS (8)
#define NUM_ANALOG_OUTPUTS (0)
@ -54,7 +54,7 @@
#define PIN_SERIAL1_TX (6)
// SPI Interfaces
#define SPI_INTERFACES_COUNT (1)
#define SPI_INTERFACES_COUNT (2)
#define PIN_SPI_MISO (9)
#define PIN_SPI_MOSI (10)
@ -101,4 +101,19 @@
#define EXTERNAL_FLASH_DEVICES P25Q16H
#define EXTERNAL_FLASH_USE_QSPI
// EInk on SPI1
#define PIN_DISPLAY_CS (36)
#define PIN_DISPLAY_BUSY (35)
#define PIN_DISPLAY_DC (34)
#define PIN_DISPLAY_RST (32)
#define PIN_SPI1_MISO (37)
#define PIN_SPI1_MOSI (33)
#define PIN_SPI1_SCK (31)
// GxEPD2 needs that for a panel that is not even used !
extern const int MISO;
extern const int MOSI;
extern const int SCK;
#endif