{>> Non-Visible component<<}
Category | Requires | Version |
---|---|---|
LEGO® MINDSTORMS® > NXT | API 21, Android 5.0 Lollipop | 1 |
A component that provides a high-level interface to a light sensor on a LEGO MINDSTORMS NXT robot.
Light level has gone above the range.
Light level has gone below the range.
Light level has gone within the range.
Returns: Number
Returns the current light level as a value between 0 and 1023, or -1 if the light level can not be read.
Boolean Default: False ➖ Read Write - Designer Blocks
Whether the AboveRange event should fire when the light level goes above the TopOfRange.
Boolean Default: False ➖ Read Write - Designer Blocks
Whether the BelowRange event should fire when the light level goes below the BottomOfRange.
Component ➖ Write - Designer
The BluetoothClient component that should be used for communication.
Number Default: 256 ➖ Read Write - Designer Blocks
The bottom of the range used for the BelowRange, WithinRange, and AboveRange events.
Boolean Default: False ➖ Read Write - Designer Blocks
Whether the light sensor should generate light.
Text Default: 3 ➖ Write - Designer
The sensor port that the sensor is connected to.
Number Default: 767 ➖ Read Write - Designer Blocks
The top of the range used for the BelowRange, WithinRange, and AboveRange events.
Boolean Default: False ➖ Read Write - Designer Blocks
Whether the WithinRange event should fire when the light level goes between the BottomOfRange and the TopOfRange.