mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-10 08:04:43 +02:00
Fix #1144 (RP2040 SPI pin settings)
Library now uses setup defined pins for SPI instead of defaults set by board package.
This commit is contained in:
@@ -6,8 +6,11 @@
|
|||||||
// Global variables
|
// Global variables
|
||||||
////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// Select the SPI port to use
|
#if !defined (TFT_PARALLEL_8_BIT)
|
||||||
SPIClass& spi = SPI;
|
// Select the SPI port to use
|
||||||
|
//SPIClass& spi = SPI;
|
||||||
|
MbedSPI spi = MbedSPI(TFT_MISO, TFT_MOSI, TFT_SCLK);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RP2040_DMA
|
#ifdef RP2040_DMA
|
||||||
uint32_t dma_tx_channel;
|
uint32_t dma_tx_channel;
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
#define AA_FONT_SMALL "NotoSansBold15"
|
#define AA_FONT_SMALL "NotoSansBold15"
|
||||||
#define AA_FONT_LARGE "NotoSansBold36"
|
#define AA_FONT_LARGE "NotoSansBold36"
|
||||||
|
|
||||||
// Font files are stored in SPIFFS, so load the linbrary
|
// Font files are stored in SPIFFS, so load the library
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
|
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
|
Reference in New Issue
Block a user