m5stack / TimerCam-arduino

TimerCam Arduino Library
MIT License
46 stars 26 forks source link

TimerCamera F doesn't work with resolutions higher than SVGA #26

Open vollukas opened 3 days ago

vollukas commented 3 days ago

Describe the bug

With this code it works only up to SVGA.. if I use anything higher, it freezes during TimerCAM.Camera.get()


    if (!TimerCAM.Camera.begin()) {
        Serial.println("Camera Init Fail");
        return;
    }
    Serial.println("Camera Init Success");

    TimerCAM.Camera.sensor->set_pixformat(TimerCAM.Camera.sensor, PIXFORMAT_JPEG);
    TimerCAM.Camera.sensor->set_framesize(TimerCAM.Camera.sensor, FRAMESIZE_UXGA);
    //TimerCAM.Camera.sensor->set_framesize(TimerCAM.Camera.sensor, FRAMESIZE_SVGA);

    TimerCAM.Camera.sensor->set_awb_gain(TimerCAM.Camera.sensor, 1);
    TimerCAM.Camera.sensor->set_wb_mode(TimerCAM.Camera.sensor, 2);

### To reproduce

1. Setup camera same as me 
2. Try to run it with TimerCamera F

### Expected behavior

It would work same as with camera tool up to FRAMESIZE_UXGA

### Screenshots

_No response_

### Environment

- Repository Version: 1.0.0

### Additional context

_No response_

### Issue checklist

- [X] I searched for previous reports in [the issue tracker](https://github.com/m5stack/M5Stack/issues?q=)
- [X] My report contains all necessary details
vollukas commented 2 days ago

I updated my library from Github master (release 1.0.0 which is available in arduino is not latest). Aside from fixing my RTC wakup it also enables me to take pictures of higher resolution... but only up to FRAMESIZE_SXGA. Higher starts to be unstable and I'm not sure if it still is problem with camera or with my implementation of sending pictures to discord webhook. But it stopped crashing and at least takes corrupted picture on those high resolutions.