Adafruit-VC0706-Serial-Camera-Library icon indicating copy to clipboard operation
Adafruit-VC0706-Serial-Camera-Library copied to clipboard

Add parameter to set delay time in readPicture()

Open philrittenhouse opened this issue 1 year ago • 0 comments

This change relates to issue #21. I saw a similar issue where it was necessary to increase the CAMERADELAY value from 10 to 32 in order to successfully read data from the cameras.

Following taf2's suggestion, this pull request adds a parameter to the readPicture() function to allow overriding the default CAMERADELAY value. By default the code will work as before using the CAMERADELAY value of 10. I have also added an error message to help users identify when increasing the delay time may be required.

I haven't been able to find a root cause for why increasing the delay time is sometimes necessary but it has helped in my setup and may help others.

I have tested the changes with my setup (ESP32 and two VC0706 cameras).

Best regards, Phil

philrittenhouse avatar Jul 11 '24 22:07 philrittenhouse