Home » Programming (API) » Programming the MRPi1 with python » ambiantLight() – API python

ambiantLight()

Description

Read the ambiant light sensors.

Syntax

ambiantLight(sensor)

Parameter

sensor : the sensor number (1 to 6)

Return

Value: int (0 to 4095)

Exemple

# read ambiant light sensor n°2
light2 = ambiantLight(2)