add board

This commit is contained in:
elmo128 2023-09-12 03:27:31 +02:00
parent 5ac98a773a
commit ad1dcda5a9
3 changed files with 36 additions and 1 deletions

View File

@ -137,3 +137,27 @@ lib_deps =
arduino-libraries/NTPClient arduino-libraries/NTPClient
https://github.com/golden-guy/Arduino_wolfssl.git#v5.5.4 https://github.com/golden-guy/Arduino_wolfssl.git#v5.5.4
https://github.com/FastLED/FastLED https://github.com/FastLED/FastLED
[env:esp32cam]
platform = espressif32
board = esp32cam
framework = arduino
monitor_filters =
esp32_exception_decoder
time
log2file
board_build.arduino.memory_type = qio_opi
monitor_speed = 115200
upload_speed = 230400
board_build.partitions = huge_app.csv
build_flags =
-D ESP32_CAM
-D MONITOR_SPEED=${this.monitor_speed}
;-D DEBUG_MINING=1
lib_deps =
bblanchon/ArduinoJson@^6.21.2
https://github.com/tzapu/WiFiManager.git
mathertel/OneButton @ ^2.0.3
arduino-libraries/NTPClient
;lib_ignore =
;TFT_eSPI

View File

@ -0,0 +1,9 @@
#ifndef _ESP32CAM_H_
#define _ESP32CAM_H_
#define PIN_BUTTON_1 0
#define LED_PIN 2
#define NO_DISPLAY
#endif // _ESP32_CAM_H_

View File

@ -11,6 +11,8 @@
#include "devices/lilygoS3Amoled.h" #include "devices/lilygoS3Amoled.h"
#elif defined(NERMINER_S3_DONGLE) #elif defined(NERMINER_S3_DONGLE)
#include "devices/lilygoS3Dongle.h" #include "devices/lilygoS3Dongle.h"
#elif defined(ESP32_CAM)
#include "devices/esp32CAM.h"
#else #else
#error "No device defined" #error "No device defined"
#endif #endif