From 8efb988cdabe8e5280db041c82d91d15ac885979 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Sun, 16 May 2021 13:11:11 +0100 Subject: [PATCH] Over-ride SPI pin defaults for RP2040 See #1188 --- Processors/TFT_eSPI_RP2040.c | 3 ++- TFT_eSPI.h | 2 +- library.json | 2 +- library.properties | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Processors/TFT_eSPI_RP2040.c b/Processors/TFT_eSPI_RP2040.c index 54fe007..b4c1546 100644 --- a/Processors/TFT_eSPI_RP2040.c +++ b/Processors/TFT_eSPI_RP2040.c @@ -13,7 +13,8 @@ MbedSPI spi = MbedSPI(TFT_MISO, TFT_MOSI, TFT_SCLK); #else // Community RP2040 board package by Earle Philhower - SPIClass& spi = SPI; + //SPIClass& spi = SPI; // will use board package default pins + SPIClassRP2040 spi = SPIClassRP2040(spi0, TFT_MISO, -1, TFT_SCLK, TFT_MOSI); #endif #endif diff --git a/TFT_eSPI.h b/TFT_eSPI.h index d97890f..fe75ab2 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -16,7 +16,7 @@ #ifndef _TFT_eSPIH_ #define _TFT_eSPIH_ -#define TFT_ESPI_VERSION "2.3.68" +#define TFT_ESPI_VERSION "2.3.69" // Bit level feature flags // Bit 0 set: viewport capability diff --git a/library.json b/library.json index 5464738..3e9ccae 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TFT_eSPI", - "version": "2.3.68", + "version": "2.3.69", "keywords": "Arduino, tft, ePaper, display, Pico, RP2040, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9481, ILI9486, ILI9488, ST7789, RM68140, SSD1351, SSD1963, ILI9225, HX8357D", "description": "A TFT and ePaper SPI graphics library with optimisation for Raspberry Pi Pico, ESP8266, ESP32 and STM32", "repository": diff --git a/library.properties b/library.properties index 4871c2f..577f40b 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFT_eSPI -version=2.3.68 +version=2.3.69 author=Bodmer maintainer=Bodmer sentence=TFT graphics library for Arduino processors with performance optimisation for RP2040, STM32, ESP8266 and ESP32