set_color_mode#
method
- UC480.set_color_mode(mode: int = 11) None[source]#
Sets the color mode of the image.
This sets the mode of image that is taken. Almost always use
11which will give you the raw photosensor data in the format:R
G0
…
G1
B
…
…
…
This data is interpreted in the _get_image() function.
- Parameters:
- modeint, optional
The color mode of the pixel data.
11, the default, means raw 8-bit.6means gray 8-bit.