Calibration states (#820)

* color calibration
This commit is contained in:
Peli de Halleux
2018-12-03 16:37:40 -08:00
committed by Sam El-Husseini
parent 4133828a10
commit 2e0a34c99b
5 changed files with 70 additions and 5 deletions

View File

@ -247,6 +247,15 @@ namespace brick {
// the brick starts with the red color
let currPattern: StatusLight = StatusLight.Off;
/**
* Gets the current light pattern.
*/
//% weight=99 group="Buttons"
//% help=brick/status-light
export function statusLight() {
return currPattern;
}
/**
* Set lights.
* @param pattern the lights pattern to use. eg: StatusLight.Orange