Skip to content

Commit 02a93b3

Browse files
authored
Merge pull request #11 from tinyMLx/camera-capture-fix
bug fix for the camera capture example
2 parents 13d0274 + f05a4cc commit 02a93b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extras/CameraCaptureRawBytes/CameraCaptureRawBytes.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
int bytesPerFrame;
1414

15-
byte data[176 * 144 * 2]; // QVGA: 320x240 X 2 bytes per pixel (RGB565)
15+
byte data[176 * 144 * 2]; // QCIF: 176x144 X 2 bytes per pixel (RGB565)
1616

1717
void setup() {
1818
Serial.begin(9600);
1919
while (!Serial);
2020

21-
if (!Camera.begin(QVGA, RGB565, 1, OV7675)) {
21+
if (!Camera.begin(QCIF, RGB565, 1, OV7675)) {
2222
Serial.println("Failed to initialize camera!");
2323
while (1);
2424
}
@@ -33,4 +33,4 @@ void loop() {
3333
Camera.readFrame(data);
3434

3535
Serial.write(data, bytesPerFrame);
36-
}
36+
}

0 commit comments

Comments
 (0)