support for rgb led in simulator

This commit is contained in:
Peli de Halleux
2016-10-11 11:41:51 -07:00
parent cb280af783
commit c4787e1028
5 changed files with 60 additions and 21 deletions

View File

@ -128,6 +128,13 @@ declare interface Image {
//% color=#0078D7 weight=100
declare namespace basic {
/**
* Sets the color on the build-in LED. Set to 0 to turn off.
*/
//% blockId=device_set_led_color block="set led to %color=color_id" icon="\uf00a"
//% weight=50 shim=basic::setLedColor
function setLedColor(color: number): void;
/**
* Scroll a number on the screen. If the number fits on the screen (i.e. is a single digit), do not scroll.
* @param interval speed of scroll; eg: 150, 100, 200, -100