@@ -46,7 +46,7 @@ static const uint8_t T14 = 14;
46
46
#define TFT_CS 5
47
47
#define TFT_MOSI 6
48
48
#define TFT_CLK 7
49
- #define TFT_MISO 0
49
+ #define TFT_MISO -1
50
50
#define TFT_BL 47
51
51
#define TFT_RST 48
52
52
@@ -60,4 +60,29 @@ static const uint8_t T14 = 14;
60
60
#define MUTE_PIN 1 //MUTE Button
61
61
#define TS_IRQ 3 //Touch Screen IRQ
62
62
63
+ // SDCARD Slot
64
+ #define BOARD_HAS_SDMMC
65
+ #define SDMMC_D0 9 // SDMMC Data0 / SDCard SPI MISO
66
+ #define SDMMC_D1 13 // SDMMC Data1
67
+ #define SDMMC_D2 42 // SDMMC Data2
68
+ #define SDMMC_D3 12 // SDMMC Data3 / SDCard SPI CS
69
+ #define SDMMC_CMD 14 // SDMMC CMD / SDCard SPI MOSI
70
+ #define SDMMC_CLK 11 // SDMMC CLK / SDCard SPI SCK
71
+ #define SDMMC_POWER 43 // Controls SDMMC Power
72
+ #define BOARD_MAX_SDMMC_FREQ SDMMC_FREQ_DEFAULT
73
+
74
+ // 240x240 LCD
75
+ #define BOARD_HAS_SPI_LCD
76
+ #define LCD_MODEL ST7789
77
+ #define LCD_WIDTH 240
78
+ #define LCD_HEIGHT 320 // *RAM height is actually 320!
79
+ #define LCD_MISO -1 // LCD Does not use MISO.
80
+ #define LCD_DC 4 // Used to switch data and command status.
81
+ #define LCD_CS 5 // used to enable LCD, low level to enable.
82
+ #define LCD_MOSI 6 // LCD SPI MOSI.
83
+ #define LCD_CLK 7 // LCD SPI Clock.
84
+ #define LCD_RST 48 // used to reset LCD, low level to reset.
85
+ #define LCD_BL 47 // LCD backlight control.
86
+
87
+
63
88
#endif /* Pins_Arduino_h */
0 commit comments