Color 640x480
Opened this issue · 1 comments
ClaudiuB1 commented
Hi @indrekluuk ,
I am trying go get a color image at vga resolution(640x480) over the serial port.
But the image is repeating over a full frame.
This is the code i changed:
#if UART_MODE==4
static const uint16_t lineLength = 640;
static const uint16_t lineCount = 480;
static const uint32_t baud = 1000000;
static const uint32_t uartSendWhileReadingCount = 4;
static const uint8_t uartPixelFormat = UART_PIXEL_FORMAT_RGB565;
CameraOV7670 camera(CameraOV7670::RESOLUTION_VGA_640x480, CameraOV7670::PIXEL_RGB565, 25);//16
#endif
indrekluuk commented
Hey! If I remember correctly, then I couldn't get it working myself either.
The problem was that UART is too slow. I was not able to slow the camera down enough to match the slow UART speed. The last parameter of the CameraOV7670 class is for slowing down the camera. The bigger the number, the slower the camera will be. If I remember correctly, then the max value is 63.
I think it could theoretically be done if you started lowering the input clock to the camera. But I haven't tried this myself.