more annotations

This commit is contained in:
Peli de Halleux
2017-10-24 15:33:28 -07:00
parent c85c68ab68
commit b0380fbef8
5 changed files with 33 additions and 9 deletions

View File

@ -118,7 +118,8 @@ namespace input {
//% blockId=infraredGetDistance
//% parts="infrared"
//% blockNamespace=input
//% weight=65 blockGap=8
//% weight=65 blockGap=8
//% group="Infrared sensor"
distance() {
this.setMode(IrSensorMode.Proximity)
return this.getNumber(NumberFormat.UInt8LE, 0)
@ -134,6 +135,7 @@ namespace input {
//% parts="infrared"
//% blockNamespace=input
//% weight=65 blockGap=8
//% group="Infrared sensor"
remoteCommand() {
this.setMode(IrSensorMode.RemoteControl)
return this.getNumber(NumberFormat.UInt8LE, this.channel)