mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Add ESP32 One config
This commit is contained in:
parent
41aafd15a7
commit
58c601875d
43
user_setups/esp32/esp32-one_ili9486.ini
Normal file
43
user_setups/esp32/esp32-one_ili9486.ini
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
;***************************************************;
|
||||||
|
; Waveshare ESP32 One with TFT 3.5" or 4" ;
|
||||||
|
; - Waveshare ESP32 One board ;
|
||||||
|
; - IPS ST7796S Rpi LCD MHS4001 (B) ;
|
||||||
|
; - XPT2046 touch controller ;
|
||||||
|
;***************************************************;
|
||||||
|
|
||||||
|
[env:esp32-one_ili9486]
|
||||||
|
extends = esp32
|
||||||
|
board = esp32dev
|
||||||
|
|
||||||
|
build_flags =
|
||||||
|
${env.build_flags}
|
||||||
|
${esp32.build_flags}
|
||||||
|
-DBOARD_HAS_PSRAM ; uses 78kB
|
||||||
|
;-mfix-esp32-psram-cache-issue ; uses
|
||||||
|
|
||||||
|
;region -- TFT_eSPI build options ------------------------
|
||||||
|
${lcd.raspberrypi}
|
||||||
|
${esp32.hspi} ; Use HSPI hardware SPI bus
|
||||||
|
-D TFT_CS=5
|
||||||
|
-D TFT_DC=4
|
||||||
|
-D TFT_RST=32
|
||||||
|
-D TFT_BCKL=26 ; Default, configurable via web UI
|
||||||
|
-D TOUCH_CS=22
|
||||||
|
-D SD_CS=15 ; Currently not supported
|
||||||
|
;-D LED_BUILTIN=21 ; Onboard LED
|
||||||
|
;-D VBAT=2 ; Default voltage divider NC
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
;region -- Hasp build options ----------------------------
|
||||||
|
-D HASP_USE_WIFI=1
|
||||||
|
;endregion
|
||||||
|
|
||||||
|
;region -- Library options -------------------------------
|
||||||
|
lib_deps =
|
||||||
|
${env.lib_deps}
|
||||||
|
${esp32.lib_deps}
|
||||||
|
|
||||||
|
lib_ignore =
|
||||||
|
${env.lib_ignore}
|
||||||
|
${esp32.lib_ignore}
|
||||||
|
;endregion
|
Loading…
x
Reference in New Issue
Block a user