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:
committed by
Peli de Halleux
parent
d5194b8d28
commit
7e9cc791ec
@ -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 () {
|
||||
|
Reference in New Issue
Block a user