From b85aefc982bf23d7abc2e7bb015da1962e8c4c04 Mon Sep 17 00:00:00 2001 From: Max McKelvey Date: Thu, 21 Sep 2023 16:09:37 -0700 Subject: [PATCH 1/2] rotated m5stack image 180 degrees --- src/deployable_example.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/deployable_example.cpp b/src/deployable_example.cpp index 3831fd6..d130c18 100644 --- a/src/deployable_example.cpp +++ b/src/deployable_example.cpp @@ -560,6 +560,11 @@ void setup() { ESP.restart(); // some boards are less reliable for initialization and will everntually just start working return; } +#ifdef CAMERA_MODEL_M5STACK_PSRAM + sensor_t * s = esp_camera_sensor_get(); + s->set_vflip(s, 1); + s->set_hmirror(s, 1); +#endif // alloc memory for 565 frames frame_565 = (uint8_t *) ps_malloc(FRAME_ARR_LEN); From 2f27c3da86e34ef15fbfe4eca074e4406eeca230 Mon Sep 17 00:00:00 2001 From: Max McKelvey Date: Fri, 22 Sep 2023 10:43:03 -0700 Subject: [PATCH 2/2] bumped version, fixed yellow --- platformio.ini | 2 +- src/deployable_example.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 3c982de..a678439 100644 --- a/platformio.ini +++ b/platformio.ini @@ -17,7 +17,7 @@ lib_deps = mobizt/ESP Mail Client@^3.1.11 ademuri/twilio-esp32-client@^0.1.0 build_flags = - '-D VERSION="0.2.0"' + '-D VERSION="0.2.1"' board_build.partitions = no_ota.csv [env:esp32cam] diff --git a/src/deployable_example.cpp b/src/deployable_example.cpp index d130c18..24cf3d3 100644 --- a/src/deployable_example.cpp +++ b/src/deployable_example.cpp @@ -190,7 +190,7 @@ StaticJsonDocument<1024> synthesisDoc; pixels.setPixelColor(2, pixels.Color(255, 0, 0)); } else if (label == "UNSURE" || label == "__UNSURE") { pixels.setPixelColor(0, pixels.Color(0, 0, 0)); - pixels.setPixelColor(1, pixels.Color(255, 255, 0)); + pixels.setPixelColor(1, pixels.Color(255, 120, 0)); pixels.setPixelColor(2, pixels.Color(0, 0, 0)); } else if (i == 0) { if (yellow_was_on) { @@ -201,7 +201,7 @@ StaticJsonDocument<1024> synthesisDoc; } else { yellow_was_on = true; pixels.setPixelColor(0, pixels.Color(0, 0, 0)); - pixels.setPixelColor(1, pixels.Color(255, 255, 0)); + pixels.setPixelColor(1, pixels.Color(255, 120, 0)); pixels.setPixelColor(2, pixels.Color(0, 0, 0)); } }