Class «led»
Provides control of the LED on the body of the robot.
red
Turns the LED on in "red" mode.
Syntax
brick.led().red(); brick.led().red();green
Turns the LED on in the "green" mode.
Syntax
brick.led().green(); brick.led().green();orange
Turns the LED on in the "orange" mode.
Syntax
brick.led().orange();brick.led().orange();off
Turns off the LED.
Syntax
brick.led().off();brick.led().off();Last updated
Was this helpful?