pxt-calliope/sim/state/rgbled.ts

6 lines
146 B
TypeScript
Raw Permalink Normal View History

2016-09-27 22:35:48 +02:00
namespace pxsim.basic {
export function setLedColor(c: number) {
board().rgbLedState = c;
2016-10-11 20:41:51 +02:00
runtime.queueDisplayUpdate()
2016-09-27 22:35:48 +02:00
}
}