Using game loop instead of queueAnimationUpdate
This commit is contained in:
@ -12,8 +12,9 @@ namespace pxsim {
|
||||
namespace pxsim.output {
|
||||
|
||||
export function setLights(pattern: number) {
|
||||
const lightState = ev3board().getBrickNode().lightState;
|
||||
const brickState = ev3board().getBrickNode();
|
||||
const lightState = brickState.lightState;
|
||||
lightState.lightPattern = pattern;
|
||||
runtime.queueDisplayUpdate();
|
||||
brickState.setChangedState();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user