Line Tracking Sensing#
To make Light Sensor blocks appear in VEXcode V5, a 3-Wire Light Sensor must be configured in the Devices window.
For more information, refer to these articles:
Light Sensor Brightness#
The Light Sensor Brightness block is used to report the amount of light detected by the Light Sensor.
([LightH v] brightness in %)
Choose which Light Sensor to use.
In this example, the Light Sensor will print the current detected brightness to the Brain’s Screen.
when started :: hat events
print ([LightH v] brightness in %) on [Brain v] ◀ and set cursor to next row