5.5.3. Configuring the resolution
The camera can be configured with 6 different resolutions. The next table shows the resolution, the number of horizontal and
vertical pixels and the library parameter to use with the function.
The highest resolution for pictures are VGA (5) and for videos are QVGA (3).
Example of use:
{
// Sets QVGA resolution
_3G.cameraResolution(3);
}
This function returns:
•
'1' on success
•
'0' if error
•
'-2' if camera not detected
•
'-3' if camera not started
5.5.4. Configuring the brightness
The camera has seven levels of brightness, from 0 to 6 (0 is the lowest, 6 is the highest).
Example of use:
{
// Sets highest brightness
_3G.cameraBrightness(6);
}
This function returns:
•
'1' on success
•
'0' if error
•
'-2' if camera not started
•
'-3' if camera is in invalid state
Resolution
STAMP
QQVGA
QCIF
QVGA
CIF
VGA
HxV(pixels)
library parameter
80x48
160x120
176x144
320x240
352x288
640x480
-23-
Board configuration and programming
0
1
2
3
4
5
v4.3
Need help?
Do you have a question about the Waspmote and is the answer not in the manual?