More samples (#896)

* coast or brake

* fix title

* added lesson
This commit is contained in:
Peli de Halleux
2019-08-31 06:05:36 -07:00
committed by GitHub
parent 12b1eb349b
commit d5194b8d28
6 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# Pause Until Pressed
This is an example of code using a touch sensor to detect a wall or other obstacle. The motors are running until the sensor is pressed.
```blocks
motors.largeBC.tank(50, 50)
sensors.touch1.pauseUntil(ButtonEvent.Pressed)
motors.largeBC.stop()
```