LIGHTLEVEL i

Command:

LIGHTLEVEL i

Command Syntax:

READ LIGHTLEVEL i

Range:

An integer value between 0 and 16383 (14 bit resolution)

Describe:

Returns the current ADC value from the specified external light sensor. External light sensors may be analog, or I2C (BH1750FVI I2C Light sensor). When an analog sensor is present, it is generally assumed to be a photodiode.

Additionally, the light level sensor may have AVERAGE and/or RANGE values specified. These can be obtained by appending the AVERAGE or RANGE keywords to the READ command.

READ LIGHTLEVEL i

READ LIGHTLEVEL i AVERAGE

READ LIGHTLEVEL i RANGE

Result:

Read analog value of light sensor (uses averaging), or I2C (value in LUX returned).

Type or
Addressable Component:

Sensor

 

LIGHTLEVEL i AVERAGE

Command:

LIGHTLEVEL i AVERAGE

Advanced user

Command Syntax:

READ LIGHTLEVEL i AVERAGE

Range:

An integer value between 0 and 16383 (14 bit resolution)

Describe:

Returns the current ADC value from the specified external light sensor. External light sensors may be analog, or I2C (BH1750FVI I2C Light sensor). When an analog sensor is present, it is generally assumed to be a photodiode.

Additionally, the light level sensor may have AVERAGE and/or RANGE values specified. These can be obtained by appending the AVERAGE or RANGE keywords to the READ command.

READ LIGHTLEVEL i AVERAGE

Result:

Read analog value of light sensor (uses averaging), or I2C (value in LUX returned).

Type or
Addressable Component:

Sensor

 

LIGHTLEVEL i RANGE

Command:

LIGHTLEVEL i RANGE

Advanced user

Command Syntax:

READ LIGHTLEVEL i RANGE

Range:

An integer value between 0 and 16383 (14 bit resolution)

Describe:

Returns the current ADC value from the specified external light sensor. External light sensors may be analog, or I2C (BH1750FVI I2C Light sensor). When an analog sensor is present, it is generally assumed to be a photodiode.

Additionally, the light level sensor may have AVERAGE and/or RANGE values specified. These can be obtained by appending the AVERAGE or RANGE keywords to the READ command.

READ LIGHTLEVEL i RANGE

Result:

Read analog value of light sensor (uses averaging), or I2C (value in LUX returned).

Type or
Addressable Component:

Sensor