diff --git a/platformio.ini b/platformio.ini index dbf36b3..3a00bb0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,7 +10,7 @@ [platformio] globallib_dir = lib -default_envs = NerminerV2, ESP32-devKitv1 +default_envs = NerminerV2, ESP32-devKitv1 [env:NerminerV2] platform = espressif32 @@ -137,3 +137,27 @@ lib_deps = arduino-libraries/NTPClient https://github.com/golden-guy/Arduino_wolfssl.git#v5.5.4 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 diff --git a/src/drivers/devices/esp32CAM.h b/src/drivers/devices/esp32CAM.h new file mode 100644 index 0000000..08e0377 --- /dev/null +++ b/src/drivers/devices/esp32CAM.h @@ -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_ \ No newline at end of file diff --git a/src/drivers/drivers.h b/src/drivers/drivers.h index 6afbcc9..b2c1e46 100644 --- a/src/drivers/drivers.h +++ b/src/drivers/drivers.h @@ -11,6 +11,8 @@ #include "devices/lilygoS3Amoled.h" #elif defined(NERMINER_S3_DONGLE) #include "devices/lilygoS3Dongle.h" +#elif defined(ESP32_CAM) +#include "devices/esp32CAM.h" #else #error "No device defined" #endif