Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera doesn't draw right using small framesizes like QQQVGA or QQQQVGA #91

Open
dimitre opened this issue Aug 11, 2020 · 0 comments
Open

Comments

@dimitre
Copy link
Contributor

dimitre commented Aug 11, 2020

if I initialize the camera using framesize = FRAMESIZE_QQQVGA or FRAMESIZE_QQQQVGA
it doesn't draw right, appearing scanlines like if I'm drawing it in the wrong resolution.

//setup
Sipeed_OV2640 camera(FRAMESIZE_QQQVGA, PIXFORMAT_RGB565);

//loop
uint8_t * img = camera.snapshot();
lcd.drawImage(0, 0, camera.width(), camera.height(), (uint16_t *)img);

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant