Add esp32-3248s035

This commit is contained in:
fvanroie 2022-09-11 14:13:21 +02:00
parent db322d096f
commit dca38d199c
2 changed files with 62 additions and 0 deletions

View File

@ -317,6 +317,8 @@ void gpioSetup()
for(uint8_t i = 0; i < HASP_NUM_GPIO_CONFIG; i++) {
gpio_setup_pin(i);
}
moodlight_t moodlight = {.brightness = 255};
gpio_set_moodlight(moodlight);
LOG_INFO(TAG_GPIO, F(D_SERVICE_STARTED));
}

View File

@ -0,0 +1,60 @@
;***************************************************;
; ESP32-WROOM custom dev board with ;
; - ST7796 TFT SPI 4-WIRE ;
; - xpt2046 touch controller ;
;***************************************************;
[esp32-3248s035]
board = esp32dev
build_flags =
${env.build_flags}
${esp32.build_flags}
${esp32.no_ps_ram}
;region -- TFT_eSPI build options ------------------------
${esp32.hspi} ; Use HSPI hardware SPI bus
-D USER_SETUP_LOADED=1
;-D LGFX_USE_V1=1
-D ST7796_DRIVER=1
-D TFT_ROTATION=0 ; 0=0, 1=90, 2=180 or 3=270 degree
-D TFT_WIDTH=320
-D TFT_HEIGHT=480
-D TFT_CS=15 ;// Chip select control pin
-D TFT_DC=2 ;// Data Command control pin
-D TFT_RST=-1 ;// Reset pin (could connect to RST pin)
-D TFT_BCKL=27 ;None, configurable via web UI (e.g. 2 for D4)
-D SUPPORT_TRANSACTIONS
-D TOUCH_CS=33
-D TOUCH_DRIVER=0x2046 ; XPT2606 Resistive touch panel driver
-D TOUCH_SDA=-1
-D TOUCH_SCL=-1
-D TOUCH_IRQ=-1
-D I2C_TOUCH_PORT=0
-D I2C_TOUCH_ADDRESS=0
-D I2C_TOUCH_FREQUENCY=0
-D SPI_FREQUENCY=65000000
-D SPI_TOUCH_FREQUENCY=2500000
-D SPI_READ_FREQUENCY=20000000
;endregion
; -- Debugging options -----------------------------
; -D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
;region -- Library options -------------------------------
lib_deps =
${env.lib_deps}
${esp32.lib_deps}
${arduino_esp32_v2.lib_deps}
${tft_espi.lib_deps}
;${lovyangfx.lib_deps}
lib_ignore =
${env.lib_ignore}
${esp32.lib_ignore}
${arduino_esp32_v2.lib_ignore}
;endregion
[env:esp32-3248s035r_4MB]
extends = esp32-3248s035, esp32_4mb_v2