The correct title of this article is When Brightness < () (block). The Scratch Wiki uses this different title because of technical restrictions.
When Brightness < ()
when brightness \< ()::ev3 hat
Category LEGO MINDSTORMS EV3
Type Hat
Introduced in 3.0

The when brightness < () block is a hat block and a LEGO MINDSTORMS EV3 block. The block activates when the EV3 unit's detected light volume is less than the specified value.

Example Uses

Some example uses of the when brightness < () block are:

  • Detecting when the light is turned off in a room
  • Detecting when the light sensor is covered by a solid object
  • Detecting the overall brightness of a room

Workaround

This block can be replicated by manually checking the brightness amount:

forever
    if < ( brightness :: ev3 ) < () > then
        . . .
    end
end

or

when green flag clicked
forever
wait until < ( brightness :: ev3 ) < () >
. . .
end

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.