Compare commits

...

4 Commits

Author SHA1 Message Date
554df0bce9 0.3.9 2016-07-29 14:22:51 -07:00
6c89dddef6 Bump pxt-core to 0.3.12 2016-07-29 14:22:48 -07:00
23f91895f7 restore advanced section in reference 2016-07-29 14:19:21 -07:00
3f83cda087 mark serial messages as simulated 2016-07-29 13:42:21 -07:00
4 changed files with 18 additions and 6 deletions

View File

@ -22,3 +22,14 @@ control.inBackground(() => {
});
```
## Advanced
```namespaces
devices.tellCameraTo(MesCameraEvent.TakePhoto);
bluetooth.onBluetoothConnected(() => {});
```
```package
microbit-devices
microbit-bluetooth
```

View File

@ -1,6 +1,6 @@
{
"name": "pxt-microbit",
"version": "0.3.8",
"version": "0.3.9",
"description": "BBC micro:bit target for PXT",
"keywords": [
"JavaScript",
@ -29,6 +29,6 @@
"typescript": "^1.8.7"
},
"dependencies": {
"pxt-core": "0.3.11"
"pxt-core": "0.3.12"
}
}

View File

@ -612,9 +612,9 @@ svg.sim.grayscale {
private attachEvents() {
Runtime.messagePosted = (msg) => {
switch (msg.type || '') {
case 'serial': this.flashSystemLed(); break;
case 'radiopacket': this.flashAntenna(); break;
switch (msg.type || "") {
case "serial": this.flashSystemLed(); break;
case "radiopacket": this.flashAntenna(); break;
}
}
let tiltDecayer = 0;

View File

@ -600,7 +600,8 @@ namespace pxsim {
Runtime.postMessage(<SimulatorSerialMessage>{
type: "serial",
data: this.serialOutBuffer,
id: runtime.id
id: runtime.id,
sim: true
})
this.serialOutBuffer = ""
break;