Commit f33674c1 authored by Bodmer's avatar Bodmer

Fix #1144 (RP2040 SPI pin settings)

Library now uses setup defined pins for SPI instead of defaults set by board package.
parent 8a8ad475
......@@ -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;
......
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment