Home » DEVELOPERS » Programming the MRduino with Arduino » ambiantLight() – API arduino

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);