parent
cfaa4ae3ef
commit
5bd4aed0e1
@ -1,5 +1,5 @@
|
|||||||
const enum ColorSensorMode {
|
const enum ColorSensorMode {
|
||||||
None = -1,
|
None = 0,
|
||||||
//% block="reflected light intensity"
|
//% block="reflected light intensity"
|
||||||
ReflectedLightIntensity = 0,
|
ReflectedLightIntensity = 0,
|
||||||
//% block="ambient light intensity"
|
//% block="ambient light intensity"
|
||||||
|
@ -212,7 +212,6 @@ namespace sensors.internal {
|
|||||||
|
|
||||||
_activated() {
|
_activated() {
|
||||||
this.realmode = 0
|
this.realmode = 0
|
||||||
// uartReset(this.port) // TODO is it ever needed?
|
|
||||||
this._setMode(this.mode)
|
this._setMode(this.mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
const enum GyroSensorMode {
|
const enum GyroSensorMode {
|
||||||
None = -1,
|
None = 0,
|
||||||
Angle = 0,
|
Angle = 0,
|
||||||
Rate = 1,
|
Rate = 1,
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
const enum InfraredSensorMode {
|
const enum InfraredSensorMode {
|
||||||
None = -1,
|
None = 0,
|
||||||
Proximity = 0,
|
Proximity = 0,
|
||||||
Seek = 1,
|
Seek = 1,
|
||||||
RemoteControl = 2,
|
RemoteControl = 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user