; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html [platformio] default_envs = esp32Cam ; do not change this value ; The below options are available for all environments ; The ssid and password are requried for the trackers to connect to your network!!! [wifi] ssid="" ; your wifi network name goes here password="" ; your wifi network password goes here channel=1 ; wifi channel ap_ssid="EyeTrackVR" ; your AP wifi network name goes here ap_password="test" ; Place your AP Wifi password here OTAPassword="" ; if empty, no password will be required OTAServerPort=3232 enableADHOC=0 ; 0 = disable, 1 = enable adhocChannel=1 ; channel to use for adhoc network ; DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING [pinoutsESPCAM] ; AI Tinker camera, the ov2650 PWDN_GPIO_NUM = 32 RESET_GPIO_NUM = -1 XCLK_GPIO_NUM = 0 SIOD_GPIO_NUM = 26 SIOC_GPIO_NUM = 27 Y9_GPIO_NUM = 35 Y8_GPIO_NUM = 34 Y7_GPIO_NUM = 39 Y6_GPIO_NUM = 36 Y5_GPIO_NUM = 21 Y4_GPIO_NUM = 19 Y3_GPIO_NUM = 18 Y2_GPIO_NUM = 5 VSYNC_GPIO_NUM = 25 HREF_GPIO_NUM = 23 PCLK_GPIO_NUM = 22 [pinoutsESPWROVER] ; CAMERA_MODEL_WROVER_KIT PWDN_GPIO_NUM = -1 RESET_GPIO_NUM = -1 XCLK_GPIO_NUM = 21 SIOD_GPIO_NUM = 26 SIOC_GPIO_NUM = 27 Y9_GPIO_NUM = 35 Y8_GPIO_NUM = 34 Y7_GPIO_NUM = 39 Y6_GPIO_NUM = 36 Y5_GPIO_NUM = 19 Y4_GPIO_NUM = 18 Y3_GPIO_NUM = 5 Y2_GPIO_NUM = 4 VSYNC_GPIO_NUM = 25 HREF_GPIO_NUM = 23 PCLK_GPIO_NUM = 22 [common] platform = espressif32 framework = arduino monitor_speed = 115200 monitor_rts = 0 monitor_dtr = 0 monitor_filters = ;colorize -- uncomment this to get a colorful text in your terminal log2file time default esp32_exception_decoder release_version = 0.0.1 ; increase this value every release build build_flags = -DOTA_SERVER_PORT=${wifi.OTAServerPort} ; Set the OTA server -DENABLE_ADHOC=${wifi.enableADHOC} ; -DADHOC_CHANNEL=${wifi.adhocChannel} ; -DWIFI_CHANNEL=${wifi.channel} ; '-DMDNS_TRACKER_NAME="OpenIrisTracker"' ; Set the tracker name - The string literal tells platformio to include the quatations in the string - making sure that the compiler sees the string as a cstring '-DOTA_PASSWORD=${wifi.OTAPassword}' ; Set the OTA password '-DWIFI_SSID=${wifi.ssid}' ; Set the users wifi network name '-DWIFI_PASSWORD=${wifi.password}' ; Set the users wifi network password '-DWIFI_AP_SSID=${wifi.ap_ssid}' ; Set the users wifi network name '-DWIFI_AP_PASSWORD=${wifi.ap_password}' ; Set the users wifi network password -DDEBUG_ESP_PORT=Serial -DCORE_DEBUG_LEVEL=4 !python tools\git_rev.py ; add git revision to build as preprocessor defines -DBOARD_HAS_PSRAM -DASYNCWEBSERVER_REGEX -mfix-esp32-psram-cache-issue build_unflags = -Os ; board_build.partitions = min_spiffs.csv board_build.partitions = huge_app.csv lib_ldf_mode = deep+ upload_speed = 921600 lib_deps = esp32-camera leftcoast/LC_baseTools@^1.5 https://github.com/ZanzyTHEbar/EasyPreferencesLibrary.git https://github.com/me-no-dev/ESPAsyncWebServer.git https://github.com/me-no-dev/AsyncTCP.git https://github.com/bblanchon/ArduinoJson.git build_type = debug extra_scripts = pre:tools/customname.py [env:esp32Cam] platform = ${common.platform} board = esp32cam framework = ${common.framework} monitor_speed = ${common.monitor_speed} monitor_rts = ${common.monitor_rts} monitor_dtr = ${common.monitor_dtr} monitor_filters = ${common.monitor_filters} build_flags = ${common.build_flags} ; CAMERA PINOUT DEFINITIONS -DPWDN_GPIO_NUM=${pinoutsESPCAM.PWDN_GPIO_NUM} ; Set the PWDN pin -DRESET_GPIO_NUM=${pinoutsESPCAM.RESET_GPIO_NUM} ; Set the RESET pin -DXCLK_GPIO_NUM=${pinoutsESPCAM.XCLK_GPIO_NUM} ; Set the XCLK pin -DSIOD_GPIO_NUM=${pinoutsESPCAM.SIOD_GPIO_NUM} ; Set the SIOD pin -DSIOC_GPIO_NUM=${pinoutsESPCAM.SIOC_GPIO_NUM} ; Set the SIOC pin -DY9_GPIO_NUM=${pinoutsESPCAM.Y9_GPIO_NUM} ; Set the Y9 pin -DY8_GPIO_NUM=${pinoutsESPCAM.Y8_GPIO_NUM} ; Set the Y8 pin -DY7_GPIO_NUM=${pinoutsESPCAM.Y7_GPIO_NUM} ; Set the Y7 pin -DY6_GPIO_NUM=${pinoutsESPCAM.Y6_GPIO_NUM} ; Set the Y6 pin -DY5_GPIO_NUM=${pinoutsESPCAM.Y5_GPIO_NUM} ; Set the Y5 pin -DY4_GPIO_NUM=${pinoutsESPCAM.Y4_GPIO_NUM} ; Set the Y4 pin -DY3_GPIO_NUM=${pinoutsESPCAM.Y3_GPIO_NUM} ; Set the Y3 pin -DY2_GPIO_NUM=${pinoutsESPCAM.Y2_GPIO_NUM} ; Set the Y2 pin -DVSYNC_GPIO_NUM=${pinoutsESPCAM.VSYNC_GPIO_NUM} ; Set the VSYNC pin -DHREF_GPIO_NUM=${pinoutsESPCAM.HREF_GPIO_NUM} ; Set the HREF pin -DPCLK_GPIO_NUM=${pinoutsESPCAM.PCLK_GPIO_NUM} ; Set the PCLK pin -DDEBUG_MODE=1 ; Set the debug mode -DVERSION=0 build_unflags = ${common.build_unflags} board_build.partitions = ${common.board_build.partitions} lib_ldf_mode = ${common.lib_ldf_mode} upload_speed = ${common.upload_speed} lib_deps = ${common.lib_deps} build_type = ${common.build_type} extra_scripts = ${common.extra_scripts} [env:esp32Cam_release] platform = ${common.platform} board = esp32cam framework = ${common.framework} monitor_speed = ${common.monitor_speed} monitor_rts = ${common.monitor_rts} monitor_dtr = ${common.monitor_dtr} build_flags = ${common.build_flags} -DDEBUG_MODE=0 ; Set the debug mode -DCORE_DEBUG_LEVEL=1 -DVERSION=${common.release_version} build_unflags = ${common.build_unflags} board_build.partitions = ${common.board_build.partitions} lib_ldf_mode = ${common.lib_ldf_mode} upload_speed = ${common.upload_speed} lib_deps = ${common.lib_deps} build_type = release extra_scripts = ${common.extra_scripts} ; Experimental OTA Environment - do not select unless you know what you are doing [env:esp32Cam_OTA] platform = ${common.platform} board = esp32cam framework = ${common.framework} build_flags = ${common.build_flags} -DDEBUG_MODE=0 ; Set the debug mode -DCORE_DEBUG_LEVEL=1 -DDEBUG_ESP_OTA -DVERSION=${common.release_version} lib_deps = ${common.lib_deps} upload_speed = ${common.upload_speed} monitor_speed = ${common.monitor_speed} monitor_rts = ${common.monitor_rts} monitor_dtr = ${common.monitor_dtr} board_build.partitions = ${common.board_build.partitions} lib_ldf_mode = ${common.lib_ldf_mode} upload_port = 192.168.1.38 upload_protocol = espota upload_flags = --port=3232 --auth=12345678 build_type = release extra_scripts = ${common.extra_scripts} [env:wrover] platform = ${common.platform} board = esp-wrover-kit framework = ${common.framework} monitor_speed = ${common.monitor_speed} monitor_filters = ${common.monitor_filters} ;monitor_rts = ${common.monitor_rts} ;monitor_dtr = ${common.monitor_dtr} build_flags = ${common.build_flags} -DDEBUG_MODE=1 ; Set the debug mode -DVERSION=0 ; CAMERA PINOUT DEFINITIONS -DPWDN_GPIO_NUM=${pinoutsESPWROVER.PWDN_GPIO_NUM} ; Set the PWDN pin -DRESET_GPIO_NUM=${pinoutsESPWROVER.RESET_GPIO_NUM} ; Set the RESET pin -DXCLK_GPIO_NUM=${pinoutsESPWROVER.XCLK_GPIO_NUM} ; Set the XCLK pin -DSIOD_GPIO_NUM=${pinoutsESPWROVER.SIOD_GPIO_NUM} ; Set the SIOD pin -DSIOC_GPIO_NUM=${pinoutsESPWROVER.SIOC_GPIO_NUM} ; Set the SIOC pin -DY9_GPIO_NUM=${pinoutsESPWROVER.Y9_GPIO_NUM} ; Set the Y9 pin -DY8_GPIO_NUM=${pinoutsESPWROVER.Y8_GPIO_NUM} ; Set the Y8 pin -DY7_GPIO_NUM=${pinoutsESPWROVER.Y7_GPIO_NUM} ; Set the Y7 pin -DY6_GPIO_NUM=${pinoutsESPWROVER.Y6_GPIO_NUM} ; Set the Y6 pin -DY5_GPIO_NUM=${pinoutsESPWROVER.Y5_GPIO_NUM} ; Set the Y5 pin -DY4_GPIO_NUM=${pinoutsESPWROVER.Y4_GPIO_NUM} ; Set the Y4 pin -DY3_GPIO_NUM=${pinoutsESPWROVER.Y3_GPIO_NUM} ; Set the Y3 pin -DY2_GPIO_NUM=${pinoutsESPWROVER.Y2_GPIO_NUM} ; Set the Y2 pin -DVSYNC_GPIO_NUM=${pinoutsESPWROVER.VSYNC_GPIO_NUM} ; Set the VSYNC pin -DHREF_GPIO_NUM=${pinoutsESPWROVER.HREF_GPIO_NUM} ; Set the HREF pin -DPCLK_GPIO_NUM=${pinoutsESPWROVER.PCLK_GPIO_NUM} ; Set the PCLK pin build_unflags = ${common.build_unflags} board_build.partitions = ${common.board_build.partitions} lib_ldf_mode = ${common.lib_ldf_mode} upload_speed = ${common.upload_speed} lib_deps = ${common.lib_deps} ;upload_port = COM6 build_type = ${common.build_type} extra_scripts = ${common.extra_scripts} [env:wrover_release] platform = ${common.platform} board = esp-wrover-kit framework = ${common.framework} monitor_speed = ${common.monitor_speed} monitor_rts = ${common.monitor_rts} monitor_dtr = ${common.monitor_dtr} build_flags = ${common.build_flags} -DDEBUG_MODE=0 ; Set the debug mode -DCORE_DEBUG_LEVEL=1 -DVERSION=${common.release_version} build_unflags = ${common.build_unflags} board_build.partitions = ${common.board_build.partitions} lib_ldf_mode = ${common.lib_ldf_mode} upload_speed = ${common.upload_speed} lib_deps = ${common.lib_deps} upload_port = COM6 build_type = release extra_scripts = ${common.extra_scripts} ; Experimental OTA Environment - do not select unless you know what you are doing [env:wrover_OTA] platform = ${common.platform} board = esp-wrover-kit framework = ${common.framework} build_flags = ${common.build_flags} -DDEBUG_MODE=0 ; Set the debug mode -DCORE_DEBUG_LEVEL=1 -DDEBUG_ESP_OTA -DVERSION=${common.release_version} lib_deps = ${common.lib_deps} upload_speed = ${common.upload_speed} monitor_speed = ${common.monitor_speed} monitor_rts = ${common.monitor_rts} monitor_dtr = ${common.monitor_dtr} board_build.partitions = ${common.board_build.partitions} lib_ldf_mode = ${common.lib_ldf_mode} upload_port = 192.168.1.38 upload_protocol = espota upload_flags = --port=3232 --auth=12345678 build_type = release extra_scripts = ${common.extra_scripts}