Some edits for the new sensor/motor examples (#901)

* Some edits for the new sensor/motor examples

* article typo

* dark and bright

* fix block styling

* I like 'on'

* more block styling
This commit is contained in:
Galen Nickel
2019-09-02 04:20:42 -07:00
committed by Peli de Halleux
parent d5194b8d28
commit 7e9cc791ec
10 changed files with 17 additions and 15 deletions

View File

@ -1,4 +1,6 @@
# Coast Or Brake
# Coast or Brake
This code example will set the brake when button **A** is pressed or let the motor coast (turn freely when not running) when button **B** is pressed. The motor is turned by one rotation to cause motion.
```blocks
brick.buttonLeft.onEvent(ButtonEvent.Pressed, function () {