writeStatusLight

Control color and mode of status light on EV3 brick

Description

example

writeStatusLight(myev3,color,mode) controls the status light that surrounds the five buttons on the front of the EV3 brick. This function turns the status light on or off, changes the color of the light, and makes the light pulse or remain on continuously.

example

writeStatusLight(myev3,off) turns the status light off.

Examples

collapse all

Change the color and mode of the status light on an EV3 brick.

Write a series of different colors and modes to the status light:

writeStatusLight(myev3,'orange','pulsing')
pause(3)
writeStatusLight(myev3,'red','solid')
pause(3)
writeStatusLight(myev3,'off')
pause(3)
writeStatusLight(myev3,'green','solid')

Input Arguments

collapse all

Connection to EV3 brick, specified as a string that represents the object created using legoev3.

Example: myev3

Data Types: char

The color of the status light, specified as a string.

Example: 'orange'

Data Types: char

Pulsing or continuous light, specified as a string.

Example: 'pulsing'

Data Types: char

Off, specified as a string.

Example: 'off'

Data Types: char