892a2d585f
* add threshold blocks * updated strings * added gap * reorg color/gyro blocks * fixing sound names * adding stop block * fixing exanmples
12 lines
270 B
Markdown
12 lines
270 B
Markdown
# Reverse Beeper Activity 1
|
|
|
|
```blocks
|
|
loops.forever(function () {
|
|
music.playTone(440, sensors.ultrasonic4.distance());
|
|
loops.pause(50)
|
|
})
|
|
motors.largeBC.setSpeed(-20);
|
|
sensors.ultrasonic4.pauseUntil(UltrasonicSensorEvent.ObjectNear);
|
|
motors.largeBC.stop();
|
|
```
|