renaming brick.setLight to brick.setStatusLight (#307)

* renaming brick.setLight to brick.setStatusLight

* updated docs
This commit is contained in:
Peli de Halleux
2018-02-06 22:18:39 -08:00
committed by GitHub
parent 88c58b4e76
commit e94ac6f6f1
23 changed files with 60 additions and 60 deletions

View File

@ -34,11 +34,11 @@ Set the brick light to green when the `down` is pressed. When the button is not
let isRed = false;
loops.forever(function() {
if (brick.buttonLeft.isPressed()) {
brick.setLight(BrickLight.Green);
brick.setStatusLight(StatusLight.Green);
isRed = false;
} else {
if (!isRed) {
brick.setLight(BrickLight.Red);
brick.setStatusLight(StatusLight.Red);
isRed = true;
}
}