Skip to content

Commit 43e5a6c

Browse files
committed
Fix arduino sketch
1 parent 151b0e4 commit 43e5a6c

File tree

1 file changed

+4
-0
lines changed
  • content/hardware/04.pro/shields/portenta-vision-shield/tutorials/vs-ard-gs

1 file changed

+4
-0
lines changed

content/hardware/04.pro/shields/portenta-vision-shield/tutorials/vs-ard-gs/content.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ HM01B0 himax;
5454
Camera cam(himax);
5555
#define IMAGE_MODE CAMERA_GRAYSCALE
5656
FrameBuffer fb(320,240,2);
57+
58+
unsigned long lastUpdate = 0;
5759
```
5860
5961
In the `setup()` function, let's start the Serial communication at `921600` baud rate and initialize the camera using `cam.begin()`.
@@ -270,6 +272,8 @@ Camera cam(himax);
270272
#define IMAGE_MODE CAMERA_GRAYSCALE
271273
FrameBuffer fb(320,240,2);
272274

275+
unsigned long lastUpdate = 0;
276+
273277
void setup() {
274278
Serial.begin(921600);
275279
//Init the cam QVGA, 30FPS

0 commit comments

Comments
 (0)