arduino-libraries / Arduino_OV767X

Official OV767X Library for Arduino , currently supports OV7670 and OV7675 cameras
https://www.arduino.cc/reference/en/libraries/arduino_ov767x/
GNU General Public License v2.0
68 stars 25 forks source link

Improved stability of Processing companion example #4

Closed 8bitkick closed 4 years ago

8bitkick commented 4 years ago

Several users have reported issues with stability of Processing using the previous version, and others observing image corruption in the Processing viewer possibly due to missed bytes.

This PR reduces memory usage by moving the image array declarations outside of the draw loop and removing the image double buffering. The double buffer seems to have been redundant as the displayed image is not updated until .updatePixels() is issued.