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:
Bodmer
2021-04-19 00:30:28 +01:00
parent 8a8ad47521
commit f33674c1a2
2 changed files with 6 additions and 3 deletions

View File

@@ -6,8 +6,11 @@
// Global variables
////////////////////////////////////////////////////////////////////////////////////////
// Select the SPI port to use
SPIClass& spi = SPI;
#if !defined (TFT_PARALLEL_8_BIT)
// Select the SPI port to use
//SPIClass& spi = SPI;
MbedSPI spi = MbedSPI(TFT_MISO, TFT_MOSI, TFT_SCLK);
#endif
#ifdef RP2040_DMA
uint32_t dma_tx_channel;

View File

@@ -37,7 +37,7 @@
#define AA_FONT_SMALL "NotoSansBold15"
#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 <SPI.h>