updated brightness docs

This commit is contained in:
Peli de Halleux
2017-03-24 07:14:37 -07:00
parent 3f1505f8f7
commit 62b4168531
2 changed files with 7 additions and 1 deletions

View File

@ -272,7 +272,7 @@ namespace pxsim.led {
}
export function setBrightness(value: number): void {
board().ledMatrixState.brigthness = value;
board().ledMatrixState.brigthness = Math.max(0, Math.min(255, value));
runtime.queueDisplayUpdate()
}