2.1.28, initiation update to PXT v5.28.24 (#54)
This commit is contained in:
committed by
Peli de Halleux
parent
38a964516e
commit
5c114a0c57
@@ -7,8 +7,15 @@ This function is like pressing the reset button on the back of the @boardname@.
|
||||
```sig
|
||||
control.reset()
|
||||
```
|
||||
## ~hint
|
||||
|
||||
### Example
|
||||
**Simulator**
|
||||
|
||||
The **reset** function works only on a real @boardname@ and not in the simulator.
|
||||
|
||||
## ~
|
||||
|
||||
## Example
|
||||
|
||||
This program will count as high as you like when you press button `A`.
|
||||
When you get tired of counting, press button `B` to reset the
|
||||
@@ -26,12 +33,6 @@ input.onButtonPressed(Button.B, () => {
|
||||
});
|
||||
```
|
||||
|
||||
#### ~hint
|
||||
|
||||
This program works better on a real @boardname@ than in the simulator.
|
||||
|
||||
#### ~
|
||||
|
||||
### See Also
|
||||
## See also
|
||||
|
||||
[clear screen](/reference/basic/clear-screen), [game over](/reference/game/game-over)
|
||||
|
||||
Reference in New Issue
Block a user