scratch like broadcast api (#1358)

* scratch like broadcast api

* always register handler

* adding docs

* added icon

* updated block name

* adding DAL support "radio.raiseEvent"

* typo

* implemented using radiobus

* adding docs

* adding raise event block

* updated shims

* updated pxt
This commit is contained in:
Peli de Halleux
2018-10-08 09:46:23 -07:00
committed by GitHub
parent ae3d3a37f9
commit 6209f0cc63
19 changed files with 235 additions and 64 deletions

View File

@ -854,6 +854,9 @@ path.sim-board {
switch (msg.type || "") {
case "serial": this.flashSystemLed(); break;
case "radiopacket": this.flashAntenna(); break;
case "eventbus":
if ((<pxsim.SimulatorEventBusMessage>msg).id == DAL.MES_BROADCAST_GENERAL_ID)
this.flashAntenna(); break;
}
}
let tiltDecayer = 0;