Skip to content

Commit

Permalink
Merge pull request #30 from busbuyukefe/feature/-esp32_2432S024
Browse files Browse the repository at this point in the history
ESP32_2432S024C Fix backlight related pins, wrong resolution and typo error
  • Loading branch information
rzeldent authored Sep 24, 2023
2 parents 0baff7d + 9d2f31b commit 7fe49ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions include/esp32_smartdisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ extern SPIClass spi_xpt2046;

// ESP32_2432S024C
#ifdef ESP32_2432S024C
#define TFT_WIDTH 320
#define TFT_HEIGHT 480
#define TFT_WIDTH 240
#define TFT_HEIGHT 320
#define ILI9431
#define ILI9431_SPI_SCLK 14
#define ILI9431_SPI_MOSI 13
#define ILI9431_SPI_MISO 12
#define ILI9341_PIN_CS 15
#define ILI9341_PIN_DC 2
#define ILI9341_SPI_FREQ 50000000
#define ILI9341_PIN_BL 21
#define ILI9341_PWM_CHANNEL_BL 12
#define ILI9341_PIN_BL 27
#define ILI9341_PWM_CHANNEL_BL 7
#define ILI9341_PWM_FREQ_BL 5000
#define ILI9341_PWM_BITS_BL 8
#define ILI9341_PWM_MAX_BL ((1 << ILI9341_PWM_BITS_BL) - 1)
Expand Down
2 changes: 1 addition & 1 deletion src/esp32_smartdisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void smartdisplay_init()
spi_xpt2046.begin(XPT2046_SPI_SCLK, XPT2046_SPI_MISO, XPT2046_SPI_MOSI);
#endif

#ifdef ESP32_3248S024C
#ifdef ESP32_2432S024C
spi_ili9431.begin(ILI9431_SPI_SCLK, ILI9431_SPI_MISO, ILI9431_SPI_MOSI);
i2c_cst820.begin(CST820_IIC_SDA, CST820_IIC_SCL);
#endif
Expand Down

0 comments on commit 7fe49ef

Please sign in to comment.