minor update

- add official support for the ESPWRover boards (i tested it on mine - it works)
This commit is contained in:
ZanzyTHEbar 2022-08-14 11:38:39 +01:00
parent eca62867f4
commit b55e25971c
3 changed files with 88 additions and 24 deletions

View File

@ -182,6 +182,7 @@ void APIServer::rebootDevice()
delay(20000);
ESP.restart();
}
void APIServer::factoryReset()
{
network->configManager->reset();

View File

@ -14,15 +14,15 @@ default_envs = debug ; 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_ssid_goes_here" ; your wifi network name goes here
password="your_password_goes_here" ; Place your Wifi password here
ssid="LoveHouse2G" ; your wifi network name goes here
password="vxwby2Gwtswp" ; Place your Wifi password here
OTAPassword="" ; if empty, no password will be required
OTAServerPort=3232
enableADHOC=0 ; 0 = disable, 1 = enable
adhocChannel=10 ; channel to use for adhoc network
; DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING
[pinouts]
[pinoutsESPCAM]
; AI Tinker camera, the ov2650
PWDN_GPIO_NUM = 32
RESET_GPIO_NUM = -1
@ -41,6 +41,25 @@ 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
board = esp32cam
@ -74,27 +93,12 @@ build_flags =
;-include "pinout.h" ; this has been added for future movement to a proper library structure
;-include "credentials.h" ; this has been added for future movement to a proper library structure
; CAMERA PINOUT DEFINITIONS
-DPWDN_GPIO_NUM=${pinouts.PWDN_GPIO_NUM} ; Set the PWDN pin
-DRESET_GPIO_NUM=${pinouts.RESET_GPIO_NUM} ; Set the RESET pin
-DXCLK_GPIO_NUM=${pinouts.XCLK_GPIO_NUM} ; Set the XCLK pin
-DSIOD_GPIO_NUM=${pinouts.SIOD_GPIO_NUM} ; Set the SIOD pin
-DSIOC_GPIO_NUM=${pinouts.SIOC_GPIO_NUM} ; Set the SIOC pin
-DY9_GPIO_NUM=${pinouts.Y9_GPIO_NUM} ; Set the Y9 pin
-DY8_GPIO_NUM=${pinouts.Y8_GPIO_NUM} ; Set the Y8 pin
-DY7_GPIO_NUM=${pinouts.Y7_GPIO_NUM} ; Set the Y7 pin
-DY6_GPIO_NUM=${pinouts.Y6_GPIO_NUM} ; Set the Y6 pin
-DY5_GPIO_NUM=${pinouts.Y5_GPIO_NUM} ; Set the Y5 pin
-DY4_GPIO_NUM=${pinouts.Y4_GPIO_NUM} ; Set the Y4 pin
-DY3_GPIO_NUM=${pinouts.Y3_GPIO_NUM} ; Set the Y3 pin
-DY2_GPIO_NUM=${pinouts.Y2_GPIO_NUM} ; Set the Y2 pin
-DVSYNC_GPIO_NUM=${pinouts.VSYNC_GPIO_NUM} ; Set the VSYNC pin
-DHREF_GPIO_NUM=${pinouts.HREF_GPIO_NUM} ; Set the HREF pin
-DPCLK_GPIO_NUM=${pinouts.PCLK_GPIO_NUM} ; Set the PCLK pin
build_unflags = -Os
board_build.partitions = min_spiffs.csv
; board_build.partitions = min_spiffs.csv
board_build.partitions = huge_app.csv
lib_ldf_mode = deep+
upload_speed = 921600
release_version = 0.0.1 ; increase this value every release build
@ -121,6 +125,25 @@ build_flags =
${common.build_flags}
-DCORE_DEBUG_LEVEL=4
-DVERSION=0
; 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
build_unflags = ${common.build_unflags}
board_build.partitions = ${common.board_build.partitions}
lib_ldf_mode = ${common.lib_ldf_mode}
@ -137,6 +160,7 @@ monitor_rts = ${common.monitor_rts}
monitor_dtr = ${common.monitor_dtr}
build_flags =
${common.build_flags}
${debug.build_flags}
-DCORE_DEBUG_LEVEL=1
-DVERSION=${common.release_version}
build_unflags = ${common.build_unflags}
@ -152,6 +176,7 @@ framework = ${common.framework}
board = ${common.board}
build_flags =
${common.build_flags}
${debug.build_flags}
-DCORE_DEBUG_LEVEL=1
-DDEBUG_ESP_OTA
-DVERSION=${common.release_version}
@ -169,3 +194,41 @@ upload_protocol = espota
upload_flags =
--port=3232
--auth=12345678
[env:wrover]
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}
-DCORE_DEBUG_LEVEL=4
-DVERSION=${common.release_version}
; 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