mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-09 23:54:43 +02:00
Remove Dxx pins for RP2040
Dxx pin names are not used with RPi Pico Note: A0-3 are defined for pins 26-29
This commit is contained in:
@@ -195,43 +195,10 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Temporary to keep the "Arduino Mbed OS RP2040 Boards" support package happy
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
#if defined(ARDUINO_ARCH_RP2040)
|
||||
#ifndef D0
|
||||
#define D0 0
|
||||
#define D1 1
|
||||
#define D2 2
|
||||
#define D3 3
|
||||
#define D4 4
|
||||
#define D5 5
|
||||
#define D6 6
|
||||
#define D7 7
|
||||
#define D8 8
|
||||
#define D9 9
|
||||
#define D10 10
|
||||
#define D11 11
|
||||
#define D12 12
|
||||
#define D13 13
|
||||
#define D14 14
|
||||
#define D15 15
|
||||
#define D16 16
|
||||
#define D17 17
|
||||
#define D18 18
|
||||
#define D19 19
|
||||
#define D20 20
|
||||
#define D21 21
|
||||
#define D22 22
|
||||
#define D23 23
|
||||
#define D24 24
|
||||
#define D25 25
|
||||
#define D26 26
|
||||
#define D27 27
|
||||
#define D28 28
|
||||
#define D29 29
|
||||
#define D30 30
|
||||
#endif
|
||||
#if defined(ARDUINO_ARCH_RP2040)
|
||||
|
||||
#define ltoa itoa
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // Header end
|
||||
|
@@ -122,12 +122,12 @@
|
||||
// to be toggled during setup, so in these cases the TFT_CS line must be defined and connected.
|
||||
|
||||
// For the Pico use these #define lines
|
||||
#define TFT_MISO D0
|
||||
#define TFT_MOSI D3
|
||||
#define TFT_SCLK D2
|
||||
#define TFT_CS D20 // Chip select control pin
|
||||
#define TFT_DC D18 // Data Command control pin
|
||||
#define TFT_RST D19 // Reset pin (could connect to Arduino RESET pin)
|
||||
#define TFT_MISO 0
|
||||
#define TFT_MOSI 3
|
||||
#define TFT_SCLK 2
|
||||
#define TFT_CS 20 // Chip select control pin
|
||||
#define TFT_DC 18 // Data Command control pin
|
||||
#define TFT_RST 19 // Reset pin (could connect to Arduino RESET pin)
|
||||
//#define TFT_BL // LED back-light
|
||||
|
||||
//#define TOUCH_CS 21 // Chip select pin (T_CS) of touch screen
|
||||
|
Reference in New Issue
Block a user