Compare commits

..

9 Commits

Author SHA1 Message Date
d2cf715423 1.4.13 2019-11-16 16:50:13 -08:00
60a74ac525 bump to pxt 5.28.24 2019-11-16 16:50:05 -08:00
864ed608bb 1.4.12 2019-11-15 19:02:12 -08:00
a8b9d3e0fd bump pxt 5.28.23 (#957)
* bump pxt

* typo
2019-11-15 19:01:59 -08:00
01d08c6d4f 1.4.11 2019-11-02 07:35:43 -07:00
426ad005d5 bump pxt 5.28.11 2019-11-02 07:35:25 -07:00
853625107c 1.4.10 2019-11-01 12:33:48 -07:00
9c1b29cc80 bump pxt5.28.9 (#956) 2019-11-01 12:33:26 -07:00
9badaffee9 1.4.9 2019-10-31 11:44:54 -07:00
5 changed files with 12 additions and 8 deletions

View File

@ -121,9 +121,10 @@ namespace sensors.internal {
powerMM = control.mmap("/dev/lms_power", 2, 0)
devPoller = new Poller(500,
() => { return hashDevices(); },
(prev, curr) => { detectDevices(); });
devPoller = new Poller(250, () => { return hashDevices(); },
(prev, curr) => {
detectDevices();
});
}
export function getActiveSensors(): Sensor[] {
@ -430,11 +431,11 @@ void cUiUpdatePower(void)
constructor(port: number) {
super(port)
this.mode = 0
this.realmode = -1
this.realmode = 0
}
_activated() {
this.realmode = -1
this.realmode = 0
this._setMode(this.mode)
}

View File

@ -1,6 +1,6 @@
{
"name": "pxt-ev3",
"version": "1.4.8",
"version": "1.4.13",
"description": "LEGO MINDSTORMS EV3 for Microsoft MakeCode",
"private": false,
"keywords": [
@ -45,8 +45,8 @@
"@types/web-bluetooth": "0.0.4"
},
"dependencies": {
"pxt-common-packages": "6.16.18",
"pxt-core": "5.28.8"
"pxt-common-packages": "6.16.24",
"pxt-core": "5.28.24"
},
"scripts": {
"test": "node node_modules/pxt-core/built/pxt.js travis"

View File

@ -3,6 +3,7 @@
namespace pxsim {
export enum ColorSensorMode {
None = -1,
Reflected = 0,
Ambient = 1,
Colors = 2,

View File

@ -1,5 +1,6 @@
namespace pxsim {
export const enum GyroSensorMode {
None = -1,
Angle = 0,
Rate = 1,
}

View File

@ -44,6 +44,7 @@ namespace pxsim {
}
export enum InfraredSensorMode {
None = -1,
Proximity = 0,
Seek = 1,
RemoteControl = 2