Jump to content

microbit.display.readLightLevel

From Compy Docs

Gives a representative figure of the light level of the environment.

Function

Synopsis

microbit.display.readLightLevel()

Arguments

None.

Returns

A number between 0 (dark) and 255 (very bright).

See Also