Skip to content

Commit 8d7a3fa

Browse files
committed
Add docs to config file
1 parent 302c8a6 commit 8d7a3fa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

libraries/Camera/extras/WebSerialCamera/cameraConfig.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1+
/**
2+
* @fileoverview This file contains the configuration for the camera.
3+
*/
4+
5+
/**
6+
* The available camera (color) modes.
7+
* The Arduino sketch uses the same values to communicate which mode should be used.
8+
**/
19
const CAMERA_MODES = {
210
0: "GRAYSCALE",
311
1: "BAYER",
412
2: "RGB565"
513
};
614

15+
/**
16+
* The available camera resolutions.
17+
* The Arduino sketch uses the same values to communicate which resolution should be used.
18+
*/
719
const CAMERA_RESOLUTIONS = {
820
0: {
921
"name": "QQVGA",

0 commit comments

Comments
 (0)