Example overrides for 'control' api docs (#352)
* Add 'playSound' api docs * Example overrides for 'control' api docs
This commit is contained in:
committed by
Peli de Halleux
parent
fcba14aae1
commit
eb45a76928
13
docs/reference/control/panic.md
Normal file
13
docs/reference/control/panic.md
Normal file
@ -0,0 +1,13 @@
|
||||
# @extends
|
||||
|
||||
## Example #example
|
||||
|
||||
Send a 'code red' error that you created to the error display if the brick crashes into a wall.
|
||||
|
||||
```blocks
|
||||
let codeRed = 1
|
||||
let codeBlue = 2
|
||||
sensors.touch1.onEvent(ButtonEvent.Pressed, function () {
|
||||
control.panic(codeRed)
|
||||
})
|
||||
```
|
Reference in New Issue
Block a user