Skip to content

Commit

Permalink
working platformio example
Browse files Browse the repository at this point in the history
  • Loading branch information
UriShX committed Feb 26, 2024
1 parent 4c9ab6e commit b029304
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
File renamed without changes.
4 changes: 3 additions & 1 deletion myconfig.sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
*
* The local config is in the '.gitignore' file, which helps to keep details secret.
*/

#ifndef MYCONFIG_H
#define MYCONFIG_H

/* Give the camera a name for the web interface */
#define CAM_NAME "ESP32 camera server"
Expand Down Expand Up @@ -195,3 +196,4 @@ struct station stationList[] = {{"ssid1", "pass1", true},
// For clone modules that have camera module and SPIFFS startup issues try setting
// this very low (start at 2MHZ and increase):
// #define XCLK_FREQ_MHZ 2
#endif
6 changes: 4 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@
src_dir = ./

[env:esp32dev]
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3
; platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
; platform_packages = framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#2.0.3
board = esp32dev
platform = espressif32
board_build.partitions = min_spiffs.csv
framework = arduino
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
monitor_speed = 115200
; For OTA uploading uncomment the next lines and add the IP address or mDNS name of the camera module, and the OTA password
;upload_protocol = espota
;upload_port = <IP or mDNS>
Expand Down

0 comments on commit b029304

Please sign in to comment.