79 lines
2.0 KiB
INI
79 lines
2.0 KiB
INI
; PlatformIO Project Configuration File
|
|
; Claude's Eyes - Autonomous Exploration Robot
|
|
;
|
|
; Hardware: Waveshare ESP32-S3-Touch-LCD-2
|
|
; Camera: OV5640 with 120° wide-angle lens
|
|
|
|
[env:esp32s3]
|
|
platform = espressif32
|
|
board = esp32-s3-devkitc-1
|
|
framework = arduino
|
|
|
|
; ESP32-S3 specific settings
|
|
board_build.mcu = esp32s3
|
|
board_build.f_cpu = 240000000L
|
|
|
|
; Flash and memory settings for Waveshare ESP32-S3-Touch-LCD-2
|
|
; 16MB Flash, 8MB PSRAM
|
|
board_build.flash_size = 16MB
|
|
board_build.partitions = default_16MB.csv
|
|
board_upload.flash_size = 16MB
|
|
board_build.arduino.memory_type = qio_opi
|
|
|
|
; Enable PSRAM
|
|
build_flags =
|
|
-DBOARD_HAS_PSRAM
|
|
-DCONFIG_SPIRAM_CACHE_WORKAROUND
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
-DARDUINO_USB_MODE=1
|
|
; Camera pins for Waveshare ESP32-S3-Touch-LCD-2
|
|
-DCAMERA_MODEL_WAVESHARE_S3
|
|
; WiFi settings
|
|
-DCONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=16
|
|
-DCONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=64
|
|
-DCONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=64
|
|
; Async webserver
|
|
-DASYNCWEBSERVER_REGEX
|
|
|
|
; Serial monitor
|
|
monitor_speed = 115200
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
; Upload settings
|
|
upload_speed = 921600
|
|
|
|
; Libraries
|
|
lib_deps =
|
|
; Async Web Server
|
|
me-no-dev/ESP Async WebServer @ ^1.2.3
|
|
me-no-dev/AsyncTCP @ ^1.1.1
|
|
; JSON handling
|
|
bblanchon/ArduinoJson @ ^7.0.0
|
|
; Display driver for ST7789
|
|
bodmer/TFT_eSPI @ ^2.5.43
|
|
; Touch driver CST816S
|
|
https://github.com/fbiego/CST816S.git
|
|
; Servo control
|
|
madhephaestus/ESP32Servo @ ^1.1.1
|
|
; IMU QMI8658
|
|
https://github.com/lewisxhe/SensorLib.git
|
|
|
|
; TFT_eSPI configuration for Waveshare ESP32-S3-Touch-LCD-2
|
|
; These are passed as build flags
|
|
build_unflags = -DUSER_SETUP_LOADED
|
|
build_src_flags =
|
|
-DUSER_SETUP_LOADED=1
|
|
-DST7789_DRIVER=1
|
|
-DTFT_WIDTH=240
|
|
-DTFT_HEIGHT=320
|
|
-DTFT_MISO=-1
|
|
-DTFT_MOSI=13
|
|
-DTFT_SCLK=14
|
|
-DTFT_CS=10
|
|
-DTFT_DC=11
|
|
-DTFT_RST=12
|
|
-DTFT_BL=45
|
|
-DTOUCH_CS=-1
|
|
-DSPI_FREQUENCY=80000000
|
|
-DSPI_READ_FREQUENCY=20000000
|