mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
feat: clean up config for users
- added custom ini files for configurations - created user config file for easier access - added formatting to codebase
This commit is contained in:
parent
8c178433d0
commit
5fbe5a358b
11
ESP/.clang-format
Normal file
11
ESP/.clang-format
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
BasedOnStyle: Chromium
|
||||
AllowShortBlocksOnASingleLine: 'false'
|
||||
AllowShortIfStatementsOnASingleLine: Never
|
||||
AllowShortLoopsOnASingleLine: 'false'
|
||||
CompactNamespaces: 'false'
|
||||
Language: Cpp
|
||||
NamespaceIndentation: All
|
||||
PointerAlignment: Left
|
||||
ReflowComments: 'true'
|
||||
UseTab: Never
|
||||
29
ESP/.editorconfig
Normal file
29
ESP/.editorconfig
Normal file
@ -0,0 +1,29 @@
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
|
||||
# Tab indentation (no size specified)
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
|
||||
[CMakeLists.txt]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
max_line_length = 80
|
||||
|
||||
[*.{c++,cc,cpp,cxx,h,h++,hh,hpp,hxx,inl,ipp,tlh,tli}]
|
||||
indent_size = 2
|
||||
cpp_indent_case_contents_when_block = true
|
||||
cpp_new_line_before_open_brace_namespace = same_line
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[README.md]
|
||||
max_line_length = 80
|
||||
312
ESP/ini/boards.ini
Normal file
312
ESP/ini/boards.ini
Normal file
@ -0,0 +1,312 @@
|
||||
#!! DO NOT CHANGE ANYTHING WITHIN THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||
|
||||
[env:esp32AIThinker]
|
||||
board = esp32cam
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_rts = ${common.monitor_rts}
|
||||
monitor_dtr = ${common.monitor_dtr}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4 ; set the debug level
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsAIThinker.build_flags}
|
||||
|
||||
[env:esp32AIThinker_release]
|
||||
board = esp32cam
|
||||
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_speed = ${common.upload_speed}
|
||||
lib_deps =
|
||||
${common.lib_deps}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsAIThinker.build_flags}
|
||||
|
||||
; Experimental OTA Environment - do not select unless you know what you are doing
|
||||
[env:esp32AIThinker_OTA]
|
||||
board = esp32cam
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DDEBUG_ESP_OTA
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsAIThinker.build_flags}
|
||||
|
||||
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 = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[env:esp32M5Stack]
|
||||
board = esp32cam
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_rts = ${common.monitor_rts}
|
||||
monitor_dtr = ${common.monitor_dtr}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=1
|
||||
-DCORE_DEBUG_LEVEL=4
|
||||
${pinoutsESPCAM_M5STACK.build_flags}
|
||||
|
||||
[env:esp32M5Stack_release]
|
||||
board = esp32cam
|
||||
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_speed = ${common.upload_speed}
|
||||
lib_deps =
|
||||
${common.lib_deps}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
${pinoutsESPCAM_M5STACK.build_flags}
|
||||
|
||||
[env:esp32M5Stack_OTA]
|
||||
board = esp32cam
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DDEBUG_ESP_OTA
|
||||
${pinoutsESPCAM_M5STACK.build_flags}
|
||||
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 = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[env:esp32Cam]
|
||||
board = esp32cam
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_rts = ${common.monitor_rts}
|
||||
monitor_dtr = ${common.monitor_dtr}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
;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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPCam.build_flags}
|
||||
|
||||
[env:esp32Cam_release]
|
||||
board = esp32cam
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_rts = ${common.monitor_rts}
|
||||
monitor_dtr = ${common.monitor_dtr}
|
||||
;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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPCam.build_flags}
|
||||
|
||||
; Experimental OTA Environment - do not select unless you know what you are doing
|
||||
[env:esp32Cam_OTA]
|
||||
board = esp32cam
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DDEBUG_ESP_OTA
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPCam.build_flags}
|
||||
|
||||
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}
|
||||
;build_unflags = ${common.build_unflags}
|
||||
board_build.partitions = ${common.board_build.partitions} ; uncomment this to use the min_spiffs partition table, great for using OTA
|
||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
||||
upload_port = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[env:esp_eye]
|
||||
board = esp-wrover-kit
|
||||
;board_build.f_flash = 80000000L
|
||||
;board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
; monitor_rts = ${common.monitor_rts}
|
||||
; monitor_dtr = ${common.monitor_dtr}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
;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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESP-EYE.build_flags}
|
||||
|
||||
[env:esp_eye_release]
|
||||
board = esp-wrover-kit
|
||||
;board_build.f_flash = 80000000L
|
||||
;board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
; monitor_rts = ${common.monitor_rts}
|
||||
; monitor_dtr = ${common.monitor_dtr}
|
||||
;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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESP-EYE.build_flags}
|
||||
|
||||
; Experimental OTA Environment - do not select unless you know what you are doing
|
||||
[env:esp_eye_OTA]
|
||||
board = esp-wrover-kit
|
||||
;board_build.f_flash = 80000000L
|
||||
;board_build.flash_mode = qio
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DDEBUG_ESP_OTA
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESP-EYE.build_flags}
|
||||
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}
|
||||
;build_unflags = ${common.build_unflags}
|
||||
board_build.partitions = ${common.board_build.partitions} ; uncomment this to use the min_spiffs partition table, great for using OTA
|
||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
||||
upload_port = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[env:wrover]
|
||||
board = esp-wrover-kit
|
||||
board_build.f_flash = 80000000L
|
||||
board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4 ; set the debug level
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPWROVER.build_flags}
|
||||
[env:wrover_release]
|
||||
board = esp-wrover-kit
|
||||
board_build.f_flash = 80000000L
|
||||
board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPWROVER.build_flags}
|
||||
|
||||
[env:wrover_OTA]
|
||||
board = esp-wrover-kit
|
||||
board_build.f_flash = 80000000L
|
||||
board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
board_build.partitions = ${common.board_build.partitions}
|
||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
||||
upload_speed = ${common.upload_speed}
|
||||
lib_deps =
|
||||
${common.lib_deps}
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DDEBUG_ESP_OTA
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPWROVER.build_flags}
|
||||
upload_port = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
185
ESP/ini/pinouts.ini
Normal file
185
ESP/ini/pinouts.ini
Normal file
@ -0,0 +1,185 @@
|
||||
#!! DO NOT CHANGE ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||
|
||||
[pinoutsESPCAM_M5STACK]
|
||||
pwdn_gpio_num = -1
|
||||
reset_gpio_num = 15
|
||||
xclk_gpio_num = 27
|
||||
siod_gpio_num = 25
|
||||
sioc_gpio_num = 23
|
||||
y9_gpio_num = 19
|
||||
y8_gpio_num = 36
|
||||
y7_gpio_num = 18
|
||||
y6_gpio_num = 39
|
||||
y5_gpio_num = 5
|
||||
y4_gpio_num = 34
|
||||
y3_gpio_num = 35
|
||||
y2_gpio_num = 17
|
||||
vsync_gpio_num = 22
|
||||
href_gpio_num = 26
|
||||
pclk_gpio_num = 21
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM_M5STACK"'
|
||||
-DPWDN_GPIO_NUM=${pinoutsESPCAM_M5STACK.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsESPCAM_M5STACK.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsESPCAM_M5STACK.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsESPCAM_M5STACK.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsESPCAM_M5STACK.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsESPCAM_M5STACK.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsESPCAM_M5STACK.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsESPCAM_M5STACK.PCLK_GPIO_NUM}
|
||||
|
||||
[pinoutsESPCam]
|
||||
pwdn_gpio_num = 32
|
||||
reset_gpio_num = 33
|
||||
xclk_gpio_num = 4
|
||||
siod_gpio_num = 18
|
||||
sioc_gpio_num = 23
|
||||
y9_gpio_num = 36
|
||||
y8_gpio_num = 19
|
||||
y7_gpio_num = 21
|
||||
y6_gpio_num = 39
|
||||
y5_gpio_num = 35
|
||||
y4_gpio_num = 14
|
||||
y3_gpio_num = 13
|
||||
y2_gpio_num = 34
|
||||
vsync_gpio_num = 5
|
||||
href_gpio_num = 27
|
||||
pclk_gpio_num = 25
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM"'
|
||||
-DCONFIG_CAMERA_MODULE_CAM_BOARD=1
|
||||
-DPWDN_GPIO_NUM=${pinoutsESPCam.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsESPCam.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsESPCam.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsESPCam.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsESPCam.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsESPCam.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsESPCam.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsESPCam.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsESPCam.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsESPCam.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsESPCam.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsESPCam.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsESPCam.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsESPCam.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsESPCam.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsESPCam.PCLK_GPIO_NUM}
|
||||
|
||||
[pinoutsAIThinker]
|
||||
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
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM_AI_THINKER"'
|
||||
-DCONFIG_CAMERA_MODULE_AITINKER_BOARD=1
|
||||
-DPWDN_GPIO_NUM=${pinoutsAIThinker.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsAIThinker.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsAIThinker.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsAIThinker.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsAIThinker.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsAIThinker.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsAIThinker.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsAIThinker.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsAIThinker.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsAIThinker.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsAIThinker.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsAIThinker.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsAIThinker.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsAIThinker.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsAIThinker.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsAIThinker.PCLK_GPIO_NUM}
|
||||
|
||||
[pinoutsESP-EYE]
|
||||
pwdn_gpio_num = -1
|
||||
reset_gpio_num = -1
|
||||
xclk_gpio_num = 4
|
||||
siod_gpio_num = 18
|
||||
sioc_gpio_num = 23
|
||||
y9_gpio_num = 36
|
||||
y8_gpio_num = 37
|
||||
y7_gpio_num = 38
|
||||
y6_gpio_num = 39
|
||||
y5_gpio_num = 14
|
||||
y4_gpio_num = 19
|
||||
y3_gpio_num = 13
|
||||
y2_gpio_num = 34
|
||||
vsync_gpio_num = 5
|
||||
href_gpio_num = 27
|
||||
pclk_gpio_num = 25
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM_ESP_EYE"'
|
||||
-DCONFIG_CAMERA_MODULE_ESP_EYE=1
|
||||
-DPWDN_GPIO_NUM=${pinoutsESP-EYE.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsESP-EYE.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsESP-EYE.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsESP-EYE.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsESP-EYE.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsESP-EYE.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsESP-EYE.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsESP-EYE.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsESP-EYE.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsESP-EYE.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsESP-EYE.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsESP-EYE.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsESP-EYE.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsESP-EYE.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsESP-EYE.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsESP-EYE.PCLK_GPIO_NUM}
|
||||
|
||||
[pinoutsESPWROVER]
|
||||
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
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM_WROVER_KIT"'
|
||||
-DCONFIG_CAMERA_MODULE_WROVER_KIT=1
|
||||
-DPWDN_GPIO_NUM=${pinoutsESPWROVER.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsESPWROVER.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsESPWROVER.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsESPWROVER.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsESPWROVER.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsESPWROVER.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsESPWROVER.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsESPWROVER.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsESPWROVER.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsESPWROVER.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsESPWROVER.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsESPWROVER.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsESPWROVER.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsESPWROVER.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsESPWROVER.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsESPWROVER.PCLK_GPIO_NUM}
|
||||
17
ESP/ini/user_config.ini
Normal file
17
ESP/ini/user_config.ini
Normal file
@ -0,0 +1,17 @@
|
||||
# This file is for user configuration
|
||||
|
||||
[wifi]
|
||||
ssid = ""
|
||||
password = ""
|
||||
mdnsname = "openiristracker"
|
||||
channel = 1
|
||||
ap_ssid = "EyeTrackVR"
|
||||
ap_password = "12345678"
|
||||
enableadhoc = 0
|
||||
adhocchannel = 1
|
||||
|
||||
[ota]
|
||||
enableota = 1
|
||||
otaserverip = "192.168.4.1"
|
||||
otapassword = "12345678"
|
||||
otaserverport = 3232
|
||||
@ -9,213 +9,18 @@
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[platformio]
|
||||
default_envs = esp32AIThinker ; do not change this value unless you know what you are doing
|
||||
default_envs = esp32AIThinker ; do not change this value unless you know what you are doing
|
||||
description = Open Source ESP Camera firmware
|
||||
extra_configs =
|
||||
ini/boards.ini
|
||||
ini/pinouts.ini
|
||||
ini/user_config.ini
|
||||
|
||||
[wifi]
|
||||
ssid = ""
|
||||
password = ""
|
||||
mdnsname = "openiristracker"
|
||||
channel = 1
|
||||
ap_ssid = "EyeTrackVR"
|
||||
ap_password = "12345678"
|
||||
enableadhoc = 0
|
||||
adhocchannel = 1
|
||||
|
||||
[ota]
|
||||
enableota = 1
|
||||
otaserverip = "192.168.4.1"
|
||||
otapassword = "12345678"
|
||||
otaserverport = 3232
|
||||
|
||||
#!! DO NOT CHANGE ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||
|
||||
[pinoutsESPCAM_M5STACK]
|
||||
pwdn_gpio_num = -1
|
||||
reset_gpio_num = 15
|
||||
xclk_gpio_num = 27
|
||||
siod_gpio_num = 25
|
||||
sioc_gpio_num = 23
|
||||
y9_gpio_num = 19
|
||||
y8_gpio_num = 36
|
||||
y7_gpio_num = 18
|
||||
y6_gpio_num = 39
|
||||
y5_gpio_num = 5
|
||||
y4_gpio_num = 34
|
||||
y3_gpio_num = 35
|
||||
y2_gpio_num = 17
|
||||
vsync_gpio_num = 22
|
||||
href_gpio_num = 26
|
||||
pclk_gpio_num = 21
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM_M5STACK"'
|
||||
-DPWDN_GPIO_NUM=${pinoutsESPCAM_M5STACK.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsESPCAM_M5STACK.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsESPCAM_M5STACK.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsESPCAM_M5STACK.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsESPCAM_M5STACK.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsESPCAM_M5STACK.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsESPCAM_M5STACK.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsESPCAM_M5STACK.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsESPCAM_M5STACK.PCLK_GPIO_NUM}
|
||||
|
||||
[pinoutsESPCam]
|
||||
pwdn_gpio_num = 32
|
||||
reset_gpio_num = 33
|
||||
xclk_gpio_num = 4
|
||||
siod_gpio_num = 18
|
||||
sioc_gpio_num = 23
|
||||
y9_gpio_num = 36
|
||||
y8_gpio_num = 19
|
||||
y7_gpio_num = 21
|
||||
y6_gpio_num = 39
|
||||
y5_gpio_num = 35
|
||||
y4_gpio_num = 14
|
||||
y3_gpio_num = 13
|
||||
y2_gpio_num = 34
|
||||
vsync_gpio_num = 5
|
||||
href_gpio_num = 27
|
||||
pclk_gpio_num = 25
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM"'
|
||||
-DCONFIG_CAMERA_MODULE_CAM_BOARD=1
|
||||
-DPWDN_GPIO_NUM=${pinoutsESPCam.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsESPCam.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsESPCam.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsESPCam.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsESPCam.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsESPCam.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsESPCam.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsESPCam.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsESPCam.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsESPCam.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsESPCam.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsESPCam.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsESPCam.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsESPCam.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsESPCam.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsESPCam.PCLK_GPIO_NUM}
|
||||
|
||||
[pinoutsAIThinker]
|
||||
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
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM_AI_THINKER"'
|
||||
-DCONFIG_CAMERA_MODULE_AITINKER_BOARD=1
|
||||
-DPWDN_GPIO_NUM=${pinoutsAIThinker.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsAIThinker.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsAIThinker.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsAIThinker.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsAIThinker.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsAIThinker.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsAIThinker.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsAIThinker.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsAIThinker.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsAIThinker.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsAIThinker.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsAIThinker.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsAIThinker.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsAIThinker.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsAIThinker.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsAIThinker.PCLK_GPIO_NUM}
|
||||
|
||||
[pinoutsESP-EYE]
|
||||
pwdn_gpio_num = -1
|
||||
reset_gpio_num = -1
|
||||
xclk_gpio_num = 4
|
||||
siod_gpio_num = 18
|
||||
sioc_gpio_num = 23
|
||||
y9_gpio_num = 36
|
||||
y8_gpio_num = 37
|
||||
y7_gpio_num = 38
|
||||
y6_gpio_num = 39
|
||||
y5_gpio_num = 14
|
||||
y4_gpio_num = 19
|
||||
y3_gpio_num = 13
|
||||
y2_gpio_num = 34
|
||||
vsync_gpio_num = 5
|
||||
href_gpio_num = 27
|
||||
pclk_gpio_num = 25
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM_ESP_EYE"'
|
||||
-DCONFIG_CAMERA_MODULE_ESP_EYE=1
|
||||
-DPWDN_GPIO_NUM=${pinoutsESP-EYE.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsESP-EYE.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsESP-EYE.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsESP-EYE.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsESP-EYE.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsESP-EYE.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsESP-EYE.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsESP-EYE.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsESP-EYE.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsESP-EYE.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsESP-EYE.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsESP-EYE.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsESP-EYE.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsESP-EYE.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsESP-EYE.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsESP-EYE.PCLK_GPIO_NUM}
|
||||
|
||||
[pinoutsESPWROVER]
|
||||
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
|
||||
build_flags =
|
||||
'-DCAMERA_MODULE_NAME="ESP32_CAM_WROVER_KIT"'
|
||||
-DCONFIG_CAMERA_MODULE_WROVER_KIT=1
|
||||
-DPWDN_GPIO_NUM=${pinoutsESPWROVER.PWDN_GPIO_NUM}
|
||||
-DRESET_GPIO_NUM=${pinoutsESPWROVER.RESET_GPIO_NUM}
|
||||
-DXCLK_GPIO_NUM=${pinoutsESPWROVER.XCLK_GPIO_NUM}
|
||||
-DSIOD_GPIO_NUM=${pinoutsESPWROVER.SIOD_GPIO_NUM}
|
||||
-DSIOC_GPIO_NUM=${pinoutsESPWROVER.SIOC_GPIO_NUM}
|
||||
-DY9_GPIO_NUM=${pinoutsESPWROVER.Y9_GPIO_NUM}
|
||||
-DY8_GPIO_NUM=${pinoutsESPWROVER.Y8_GPIO_NUM}
|
||||
-DY7_GPIO_NUM=${pinoutsESPWROVER.Y7_GPIO_NUM}
|
||||
-DY6_GPIO_NUM=${pinoutsESPWROVER.Y6_GPIO_NUM}
|
||||
-DY5_GPIO_NUM=${pinoutsESPWROVER.Y5_GPIO_NUM}
|
||||
-DY4_GPIO_NUM=${pinoutsESPWROVER.Y4_GPIO_NUM}
|
||||
-DY3_GPIO_NUM=${pinoutsESPWROVER.Y3_GPIO_NUM}
|
||||
-DY2_GPIO_NUM=${pinoutsESPWROVER.Y2_GPIO_NUM}
|
||||
-DVSYNC_GPIO_NUM=${pinoutsESPWROVER.VSYNC_GPIO_NUM}
|
||||
-DHREF_GPIO_NUM=${pinoutsESPWROVER.HREF_GPIO_NUM}
|
||||
-DPCLK_GPIO_NUM=${pinoutsESPWROVER.PCLK_GPIO_NUM}
|
||||
|
||||
[common]
|
||||
[env]
|
||||
platform = espressif32
|
||||
framework = arduino
|
||||
|
||||
[common]
|
||||
monitor_speed = 115200
|
||||
monitor_rts = 0
|
||||
monitor_dtr = 0
|
||||
@ -267,344 +72,3 @@ lib_deps =
|
||||
|
||||
build_type = debug
|
||||
extra_scripts = pre:tools/customname.py
|
||||
|
||||
[env:esp32AIThinker]
|
||||
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}
|
||||
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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4 ; set the debug level
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsAIThinker.build_flags}
|
||||
|
||||
[env:esp32AIThinker_release]
|
||||
platform = ${common.platform}
|
||||
board = esp32cam
|
||||
framework = ${common.framework}
|
||||
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_speed = ${common.upload_speed}
|
||||
lib_deps =
|
||||
${common.lib_deps}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsAIThinker.build_flags}
|
||||
|
||||
; Experimental OTA Environment - do not select unless you know what you are doing
|
||||
[env:esp32AIThinker_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
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsAIThinker.build_flags}
|
||||
|
||||
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 = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[env:esp32M5Stack]
|
||||
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}
|
||||
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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=1
|
||||
-DCORE_DEBUG_LEVEL=4
|
||||
${pinoutsESPCAM_M5STACK.build_flags}
|
||||
|
||||
[env:esp32M5Stack_release]
|
||||
platform = ${common.platform}
|
||||
board = esp32cam
|
||||
framework = ${common.framework}
|
||||
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_speed = ${common.upload_speed}
|
||||
lib_deps =
|
||||
${common.lib_deps}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
${pinoutsESPCAM_M5STACK.build_flags}
|
||||
|
||||
[env:esp32M5Stack_OTA]
|
||||
platform = ${common.platform}
|
||||
board = esp32cam
|
||||
framework = ${common.framework}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DDEBUG_ESP_OTA
|
||||
${pinoutsESPCAM_M5STACK.build_flags}
|
||||
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 = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[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_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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPCam.build_flags}
|
||||
|
||||
[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_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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPCam.build_flags}
|
||||
|
||||
; 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
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPCam.build_flags}
|
||||
|
||||
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}
|
||||
;build_unflags = ${common.build_unflags}
|
||||
board_build.partitions = ${common.board_build.partitions} ; uncomment this to use the min_spiffs partition table, great for using OTA
|
||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
||||
upload_port = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[env:esp_eye]
|
||||
platform = ${common.platform}
|
||||
board = esp-wrover-kit
|
||||
framework = ${common.framework}
|
||||
;board_build.f_flash = 80000000L
|
||||
;board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
; monitor_rts = ${common.monitor_rts}
|
||||
; monitor_dtr = ${common.monitor_dtr}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
;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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESP-EYE.build_flags}
|
||||
|
||||
[env:esp_eye_release]
|
||||
platform = ${common.platform}
|
||||
board = esp-wrover-kit
|
||||
framework = ${common.framework}
|
||||
;board_build.f_flash = 80000000L
|
||||
;board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
; monitor_rts = ${common.monitor_rts}
|
||||
; monitor_dtr = ${common.monitor_dtr}
|
||||
;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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESP-EYE.build_flags}
|
||||
|
||||
; Experimental OTA Environment - do not select unless you know what you are doing
|
||||
[env:esp_eye_OTA]
|
||||
platform = ${common.platform}
|
||||
board = esp-wrover-kit
|
||||
framework = ${common.framework}
|
||||
;board_build.f_flash = 80000000L
|
||||
;board_build.flash_mode = qio
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DDEBUG_ESP_OTA
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESP-EYE.build_flags}
|
||||
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}
|
||||
;build_unflags = ${common.build_unflags}
|
||||
board_build.partitions = ${common.board_build.partitions} ; uncomment this to use the min_spiffs partition table, great for using OTA
|
||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
||||
upload_port = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
|
||||
[env:wrover]
|
||||
platform = ${common.platform}
|
||||
board = esp-wrover-kit
|
||||
framework = ${common.framework}
|
||||
board_build.f_flash = 80000000L
|
||||
board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DCORE_DEBUG_LEVEL=4 ; set the debug level
|
||||
-DDEBUG_MODE=1 ; Set the debug mode
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPWROVER.build_flags}
|
||||
[env:wrover_release]
|
||||
platform = ${common.platform}
|
||||
board = esp-wrover-kit
|
||||
framework = ${common.framework}
|
||||
board_build.f_flash = 80000000L
|
||||
board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
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}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPWROVER.build_flags}
|
||||
|
||||
[env:wrover_OTA]
|
||||
platform = ${common.platform}
|
||||
board = esp-wrover-kit
|
||||
framework = ${common.framework}
|
||||
board_build.f_flash = 80000000L
|
||||
board_build.flash_mode = qio
|
||||
monitor_speed = ${common.monitor_speed}
|
||||
monitor_filters = ${common.monitor_filters}
|
||||
board_build.partitions = ${common.board_build.partitions}
|
||||
lib_ldf_mode = ${common.lib_ldf_mode}
|
||||
upload_speed = ${common.upload_speed}
|
||||
lib_deps =
|
||||
${common.lib_deps}
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
build_flags = ${common.build_flags}
|
||||
-DDEBUG_MODE=0 ; Set the debug mode
|
||||
-DCORE_DEBUG_LEVEL=1
|
||||
-DDEBUG_ESP_OTA
|
||||
; CAMERA PINOUT DEFINITIONS
|
||||
${pinoutsESPWROVER.build_flags}
|
||||
upload_port = ${ota.otaserverip}
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
--port=${ota.otaserverport}
|
||||
--auth=${ota.otapassword}
|
||||
build_type = release
|
||||
|
||||
@ -68,41 +68,41 @@ void setup()
|
||||
switch (wifiStateManager.getCurrentState())
|
||||
{
|
||||
case WiFiState_e::WiFiState_Disconnected:
|
||||
{
|
||||
//! TODO: Implement
|
||||
break;
|
||||
}
|
||||
{
|
||||
//! TODO: Implement
|
||||
break;
|
||||
}
|
||||
case WiFiState_e::WiFiState_Disconnecting:
|
||||
{
|
||||
//! TODO: Implement
|
||||
break;
|
||||
}
|
||||
{
|
||||
//! TODO: Implement
|
||||
break;
|
||||
}
|
||||
case WiFiState_e::WiFiState_ADHOC:
|
||||
{
|
||||
streamServer.startStreamServer();
|
||||
log_d("[SETUP]: Starting Stream Server");
|
||||
apiServer.begin();
|
||||
log_d("[SETUP]: Starting API Server");
|
||||
break;
|
||||
}
|
||||
{
|
||||
streamServer.startStreamServer();
|
||||
log_d("[SETUP]: Starting Stream Server");
|
||||
apiServer.begin();
|
||||
log_d("[SETUP]: Starting API Server");
|
||||
break;
|
||||
}
|
||||
case WiFiState_e::WiFiState_Connected:
|
||||
{
|
||||
streamServer.startStreamServer();
|
||||
log_d("[SETUP]: Starting Stream Server");
|
||||
apiServer.begin();
|
||||
log_d("[SETUP]: Starting API Server");
|
||||
break;
|
||||
}
|
||||
{
|
||||
streamServer.startStreamServer();
|
||||
log_d("[SETUP]: Starting Stream Server");
|
||||
apiServer.begin();
|
||||
log_d("[SETUP]: Starting API Server");
|
||||
break;
|
||||
}
|
||||
case WiFiState_e::WiFiState_Connecting:
|
||||
{
|
||||
//! TODO: Implement
|
||||
break;
|
||||
}
|
||||
{
|
||||
//! TODO: Implement
|
||||
break;
|
||||
}
|
||||
case WiFiState_e::WiFiState_Error:
|
||||
{
|
||||
//! TODO: Implement
|
||||
break;
|
||||
}
|
||||
{
|
||||
//! TODO: Implement
|
||||
break;
|
||||
}
|
||||
}
|
||||
#if ENABLE_OTA
|
||||
ota.SetupOTA();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user