Skip to content

Commit

Permalink
removed warnnings on S3 cameras configs. Improved samples delays
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed May 4, 2024
1 parent e0f71b0 commit 1184a2a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
9 changes: 7 additions & 2 deletions examples/tjournal-espnow-sender/tjournal-espnow-sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ESPNowCam radio;
void processFrame() {
if (Camera.get()) {
radio.sendData(Camera.fb->buf, Camera.fb->len);
delay(25); // ==> weird delay for this camera.
delay(35); // ==> weird delay for NOPSRAM camera.
printFPS("CAM:");
Camera.free();
}
Expand All @@ -25,14 +25,19 @@ void processFrame() {
void setup() {
Serial.begin(115200);

delay(5000); // only for debugging
delay(1000); // only for debugging

if(psramFound()){
size_t psram_size = esp_spiram_get_size() / 1048576;
Serial.printf("PSRAM size: %dMb\r\n", psram_size);
}

radio.init();

// You are able to change the Camera config E.g:
// Camera.config.fb_count = 2;
// Camera.config.frame_size = FRAMESIZE_QQVGA;

if (!Camera.begin()) {
Serial.println("Camera Init Fail");
delay(1000);
Expand Down
2 changes: 1 addition & 1 deletion examples/unitcams3-basic-sender/unitcams3-basic-sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void processFrame() {
void setup() {
Serial.begin(115200);

delay(5000); // only for debugging
delay(1000); // only for debugging

if(psramFound()){
size_t psram_size = esp_spiram_get_size() / 1048576;
Expand Down
2 changes: 1 addition & 1 deletion examples/xiao-espnow-sender/xiao-espnow-sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void processFrame() {
void setup() {
Serial.begin(115200);

delay(5000); // only for debugging
delay(1000); // only for debugging

if(psramFound()){
size_t psram_size = esp_spiram_get_size() / 1048576;
Expand Down
4 changes: 2 additions & 2 deletions src/drivers/CamFreenove.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class CamFreenove : public CameraBase {
config.pin_pwdn = -1;
config.pin_reset = -1;
config.pin_xclk = 15;
config.pin_sscb_sda = 4;
config.pin_sscb_scl = 5;
config.pin_sccb_sda = 4;
config.pin_sccb_scl = 5;
config.pin_d7 = 16;
config.pin_d6 = 17;
config.pin_d5 = 18;
Expand Down
4 changes: 2 additions & 2 deletions src/drivers/CamXiao.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class CamXiao : public CameraBase {
config.pin_pwdn = PWDN_GPIO_NUM;
config.pin_reset = RESET_GPIO_NUM;
config.pin_xclk = XCLK_GPIO_NUM;
config.pin_sscb_sda = SIOD_GPIO_NUM;
config.pin_sscb_scl = SIOC_GPIO_NUM;
config.pin_sccb_sda = SIOD_GPIO_NUM;
config.pin_sccb_scl = SIOC_GPIO_NUM;
config.pin_d7 = Y9_GPIO_NUM;
config.pin_d6 = Y8_GPIO_NUM;
config.pin_d5 = Y7_GPIO_NUM;
Expand Down
4 changes: 2 additions & 2 deletions src/drivers/UnitCamS3.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class UnitCamS3 : public CameraBase {
UnitCamS3() {
config.pin_reset = 21;
config.pin_xclk = 11;
config.pin_sscb_sda = 17;
config.pin_sscb_scl = 41;
config.pin_sccb_sda = 17;
config.pin_sccb_scl = 41;
config.pin_d7 = 13;
config.pin_d6 = 4;
config.pin_d5 = 10;
Expand Down

0 comments on commit 1184a2a

Please sign in to comment.