Skip to content

Commit a8fe135

Browse files
authored
Adds SD pins and LCD definitions
1 parent f3bb4f3 commit a8fe135

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

variants/esp32s3box3/pins_arduino.h

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static const uint8_t T14 = 14;
4646
#define TFT_CS 5
4747
#define TFT_MOSI 6
4848
#define TFT_CLK 7
49-
#define TFT_MISO 0
49+
#define TFT_MISO -1
5050
#define TFT_BL 47
5151
#define TFT_RST 48
5252

@@ -60,4 +60,29 @@ static const uint8_t T14 = 14;
6060
#define MUTE_PIN 1 //MUTE Button
6161
#define TS_IRQ 3 //Touch Screen IRQ
6262

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+
6388
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)