From 41d8917c76541d7b13b68bf66e849071e8e6d4dd Mon Sep 17 00:00:00 2001 From: SQFMI Date: Tue, 2 Jul 2024 17:23:50 -0400 Subject: [PATCH] Fix issue with display SPI pins --- library.json | 2 +- library.properties | 2 +- src/Display.cpp | 3 +++ src/config.h | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/library.json b/library.json index 2f242fa9..1de44292 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Watchy", - "version": "1.4.11", + "version": "1.4.12", "description": "Watchy - An Open Source E-Paper Watch by SQFMI", "authors": [ { diff --git a/library.properties b/library.properties index a2671cdd..5fd238c9 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Watchy -version=1.4.11 +version=1.4.12 author=SQFMI maintainer=SQFMI sentence=Watchy - An Open Source E-Paper Watch by SQFMI diff --git a/src/Display.cpp b/src/Display.cpp index 3ef8d5d9..94cf86db 100644 --- a/src/Display.cpp +++ b/src/Display.cpp @@ -28,6 +28,9 @@ WatchyDisplay::WatchyDisplay() : GxEPD2_EPD(DISPLAY_CS, DISPLAY_DC, DISPLAY_RES, DISPLAY_BUSY, HIGH, 10000000, WIDTH, HEIGHT, panel, hasColor, hasPartialUpdate, hasFastPartialUpdate) { // Setup callback and SPI by default + #ifdef ARDUINO_ESP32S3_DEV + SPI.begin(WATCHY_V3_SCK,WATCHY_V3_MISO,WATCHY_V3_MOSI,WATCHY_V3_SS); + #endif selectSPI(SPI, SPISettings(20000000, MSBFIRST, SPI_MODE0)); setBusyCallback(busyCallback); } diff --git a/src/config.h b/src/config.h index 22503374..1bd51f54 100644 --- a/src/config.h +++ b/src/config.h @@ -2,7 +2,7 @@ #define CONFIG_H // Versioning -#define WATCHY_LIB_VER "1.4.11" +#define WATCHY_LIB_VER "1.4.12" //pins //#if !defined(ARDUINO_WATCHY_V10) && !defined(ARDUINO_WATCHY_V15) && !defined(ARDUINO_WATCHY_V20)