pxt-ev3/docs/coding/reverse-beeper-1.md
2018-02-19 07:35:08 -08:00

12 lines
253 B
Markdown

# Reverse Beeper Activity 1
```blocks
forever(function () {
music.playTone(440, sensors.ultrasonic4.distance());
pause(50)
})
motors.largeBC.run(-20);
sensors.ultrasonic4.pauseUntil(UltrasonicSensorEvent.ObjectNear);
motors.largeBC.stop();
```