Add LED support

This commit is contained in:
Michal Moskal
2017-07-05 12:27:54 +01:00
parent 9f8377f893
commit 0aeba646bd
3 changed files with 69 additions and 2 deletions

10
libs/core/shims.d.ts vendored
View File

@ -38,10 +38,18 @@ declare namespace input {
//% block="button exit" weight=95 fixedInstance shim=pxt::getButton(5)
const buttonExit: Button;
}
declare namespace output {
/**
* Set lights.
*/
//% blockId=setLights block="set lights %pattern" shim=output::setLights
function setLights(pattern: LightsPattern): void;
}
//% noRefCounting fixedInstances
//% fixedInstances
declare interface Button {
/**
* Do something when a button (`A`, `B` or both `A` + `B`) is clicked, double clicked, etc...