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
17
docs/reference/control/wait-micros.md
Normal file
17
docs/reference/control/wait-micros.md
Normal file
@ -0,0 +1,17 @@
|
||||
# @extends
|
||||
|
||||
## Example #example
|
||||
|
||||
Use the a wait and the timer to generate a crazy number.
|
||||
|
||||
```blocks
|
||||
let crazy = 0
|
||||
for (let i = 0; i < 100; i++) {
|
||||
control.waitMicros(100)
|
||||
crazy = control.millis()
|
||||
crazy += control.deviceSerialNumber()
|
||||
if (crazy != 0) {
|
||||
crazy = crazy / 1000000
|
||||
}
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user