renaming brick.setLight to brick.setStatusLight (#307)
* renaming brick.setLight to brick.setStatusLight * updated docs
This commit is contained in:
@ -35,9 +35,9 @@ Set the brick light to green if the `right` button was pressed before the `left`
|
||||
```blocks
|
||||
brick.buttonLeft.onEvent(ButtonEvent.Bumped, function() {
|
||||
if (brick.buttonRight.wasPressed()) {
|
||||
brick.setLight(BrickLight.Green)
|
||||
brick.setStatusLight(StatusLight.Green)
|
||||
} else {
|
||||
brick.setLight(BrickLight.Off)
|
||||
brick.setStatusLight(StatusLight.Off)
|
||||
}
|
||||
})
|
||||
```
|
||||
|
Reference in New Issue
Block a user