Skip to content

Commit 0ffc88d

Browse files
committed
Getting Started updated
1 parent a6a9cb9 commit 0ffc88d

File tree

1 file changed

+20
-4
lines changed
  • content/hardware/04.pro/shields/portenta-vision-shield/tutorials/getting-started-camera

1 file changed

+20
-4
lines changed

content/hardware/04.pro/shields/portenta-vision-shield/tutorials/getting-started-camera/content.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,23 @@ To capture the frames you will need to use the functions contained in `camera.h`
4747

4848
```cpp
4949
#include "camera.h"
50-
#include "himax.h"
50+
//For the Vision Shield Rev.1
51+
#include "himax.h" // API to read from the Himax camera found on the Portenta Vision Shield Rev.1
52+
53+
//For the Vision Shield Rev.2
54+
#include "hm0360.h" // API to read from the Himax camera found on the Portenta Vision Shield Rev.2
5155
```
5256

57+
***Left uncommented the library of your Vision Shield version.***
58+
5359
Next, let's initialize a camera object and a frame buffer of the size 320*240 (76'800 bytes).
5460

5561
```cpp
56-
HM01B0 himax;
62+
63+
HM01B0 himax; // for Vision Shield Rev.1
64+
65+
HM0360 himax; // for Vision Shield Rev.2
66+
5767
Camera cam(himax);
5868
#define IMAGE_MODE CAMERA_GRAYSCALE
5969
FrameBuffer fb(320,240,2);
@@ -268,9 +278,15 @@ The `CaptureRawBytes.ino` Sketch.
268278

269279
```cpp
270280
#include "camera.h"
271-
#include "himax.h"
272281

273-
HM01B0 himax;
282+
/*-----Uncomment the library and class for your specific hardware-----*/
283+
284+
//#include "himax.h" // API to read from the Himax camera found on the Portenta Vision Shield Rev.1
285+
//HM01B0 himax;
286+
287+
#include "hm0360.h" // API to read from the Himax camera found on the Portenta Vision Shield Rev.2
288+
HM0360 himax;
289+
274290
Camera cam(himax);
275291
#define IMAGE_MODE CAMERA_GRAYSCALE
276292
FrameBuffer fb(320,240,2);

0 commit comments

Comments
 (0)