set_color_mode

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 11 which 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. 6 means gray 8-bit.