Skip to content

Commit e98fa0e

Browse files
committed
Fix sections order
1 parent 7d5cc34 commit e98fa0e

File tree

1 file changed

+12
-11
lines changed
  • content/hardware/04.pro/shields/portenta-vision-shield/tutorials/camera-to-bitmap-sd-card

1 file changed

+12
-11
lines changed

content/hardware/04.pro/shields/portenta-vision-shield/tutorials/camera-to-bitmap-sd-card/content.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,18 @@ The `loop()` is empty, as it only does one shot once the Serial monitor is open.
226226

227227
Select the right serial port on your IDE and upload the Arduino sketch to your H7. After a successful upload.
228228

229+
### 4. Try It Out
230+
231+
Insert a micro SD Card into the Portenta Vision Shield.
232+
233+
Connect the Portenta Vision shield to the Portenta H7.
234+
235+
Once the sketch is uploaded, open the Serial monitor, you should see that everything is fine and the capture has been taken.
236+
237+
Once the capture is saved, remove the SD Card and plug it into a computer/phone with an SD Card reader, open the storage unit and look for a bitmap called `image.bmp` then open it to check the result, you will be able to see a grayscale image on your device's image viewer.
238+
239+
![Output bitmap example](assets/output-view.png)
240+
229241
#### Full Sketch
230242

231243
```cpp
@@ -355,17 +367,6 @@ void parseData()
355367
}
356368
```
357369
358-
### 4. Try It Out
359-
360-
Insert a micro SD Card into the Portenta Vision Shield.
361-
362-
Connect the Portenta Vision shield to the Portenta H7.
363-
364-
Once the sketch is uploaded, open the Serial monitor, you should see that everything is fine and the capture has been taken.
365-
366-
Once the capture is saved, remove the SD Card and plug it into a computer/phone with an SD Card reader, open the storage unit and look for a bitmap called `image.bmp` then open it to check the result, you will be able to see a grayscale image on your device's image viewer.
367-
368-
![Output bitmap example](assets/output-view.png)
369370
## Conclusion
370371
371372
In this tutorial you learned how to capture the frames from your Vision Shield's Camera in the Arduino IDE, encode it with the bitmap standards and save it to an SD Card.

0 commit comments

Comments
 (0)