pxt-calliope/sim/state/rgbled.ts
2016-10-11 11:41:51 -07:00

6 lines
146 B
TypeScript

namespace pxsim.basic {
export function setLedColor(c: number) {
board().rgbLedState = c;
runtime.queueDisplayUpdate()
}
}