wait until
This commit is contained in:
parent
3d8c697586
commit
8089841892
@ -61,7 +61,7 @@
|
|||||||
"sensors.InfraredSensor.on|block": "on `icons.infraredSensor` %sensor|%event",
|
"sensors.InfraredSensor.on|block": "on `icons.infraredSensor` %sensor|%event",
|
||||||
"sensors.InfraredSensor.proximity|block": "`icons.infraredSensor` %infrared|proximity",
|
"sensors.InfraredSensor.proximity|block": "`icons.infraredSensor` %infrared|proximity",
|
||||||
"sensors.InfraredSensor.remoteCommand|block": "`icons.infraredSensor` %infrared|remote command",
|
"sensors.InfraredSensor.remoteCommand|block": "`icons.infraredSensor` %infrared|remote command",
|
||||||
"sensors.InfraredSensor.waitUntil|block": "wait `icons.infraredSensor` %sensor|until %event",
|
"sensors.InfraredSensor.waitUntil|block": "wait until `icons.infraredSensor` %sensor| %event",
|
||||||
"sensors.RemoteInfraredBeaconButton.isPressed|block": "`icons.infraredSensor` %button|is pressed",
|
"sensors.RemoteInfraredBeaconButton.isPressed|block": "`icons.infraredSensor` %button|is pressed",
|
||||||
"sensors.RemoteInfraredBeaconButton.onEvent|block": "on `icons.infraredSensor` %button|%event",
|
"sensors.RemoteInfraredBeaconButton.onEvent|block": "on `icons.infraredSensor` %button|%event",
|
||||||
"sensors.RemoteInfraredBeaconButton.wasPressed|block": "`icons.infraredSensor` %button|was pressed",
|
"sensors.RemoteInfraredBeaconButton.wasPressed|block": "`icons.infraredSensor` %button|was pressed",
|
||||||
|
@ -209,7 +209,7 @@ namespace sensors {
|
|||||||
* Waits for the event to occur
|
* Waits for the event to occur
|
||||||
*/
|
*/
|
||||||
//% help=input/ultrasonic/wait
|
//% help=input/ultrasonic/wait
|
||||||
//% block="wait `icons.infraredSensor` %sensor|until %event"
|
//% block="wait until `icons.infraredSensor` %sensor| %event"
|
||||||
//% blockId=infraredwait
|
//% blockId=infraredwait
|
||||||
//% parts="infraredsensor"
|
//% parts="infraredsensor"
|
||||||
//% blockNamespace=sensors
|
//% blockNamespace=sensors
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"UltrasonicSensorEvent.ObjectDetected|block": "object detected",
|
"UltrasonicSensorEvent.ObjectDetected|block": "object detected",
|
||||||
|
"UltrasonicSensorEvent.ObjectFar|block": "object far",
|
||||||
"UltrasonicSensorEvent.ObjectNear|block": "object near",
|
"UltrasonicSensorEvent.ObjectNear|block": "object near",
|
||||||
"sensors.UltraSonicSensor.distance|block": "`icons.ultrasonicSensor` %sensor|distance",
|
"sensors.UltraSonicSensor.distance|block": "`icons.ultrasonicSensor` %sensor|distance",
|
||||||
"sensors.UltraSonicSensor.onEvent|block": "on `icons.ultrasonicSensor` %sensor|%event",
|
"sensors.UltraSonicSensor.onEvent|block": "on `icons.ultrasonicSensor` %sensor|%event",
|
||||||
"sensors.UltraSonicSensor.waitUntil|block": "wait `icons.ultrasonicSensor` %sensor|until %event",
|
"sensors.UltraSonicSensor.waitUntil|block": "wait until `icons.ultrasonicSensor` %sensor| %event",
|
||||||
"sensors.ultrasonic1|block": "1",
|
"sensors.ultrasonic1|block": "1",
|
||||||
"sensors.ultrasonic2|block": "2",
|
"sensors.ultrasonic2|block": "2",
|
||||||
"sensors.ultrasonic3|block": "3",
|
"sensors.ultrasonic3|block": "3",
|
||||||
|
@ -56,7 +56,7 @@ namespace sensors {
|
|||||||
* Waits for the event to occur
|
* Waits for the event to occur
|
||||||
*/
|
*/
|
||||||
//% help=input/ultrasonic/wait
|
//% help=input/ultrasonic/wait
|
||||||
//% block="wait `icons.ultrasonicSensor` %sensor|until %event"
|
//% block="wait until `icons.ultrasonicSensor` %sensor| %event"
|
||||||
//% blockId=ultrasonicWait
|
//% blockId=ultrasonicWait
|
||||||
//% parts="ultrasonicsensor"
|
//% parts="ultrasonicsensor"
|
||||||
//% blockNamespace=sensors
|
//% blockNamespace=sensors
|
||||||
|
Loading…
Reference in New Issue
Block a user