Update reactive.md
This commit is contained in:
parent
cf654f1a2f
commit
2bad333df8
@ -50,10 +50,11 @@ The first job of the scheduler is to allow multiple *subprograms* to be queued u
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
let count = 0
|
let count = 0
|
||||||
count = 0
|
|
||||||
input.onButtonPressed(Button.A, () => {
|
input.onButtonPressed(Button.A, () => {
|
||||||
count++;
|
count++;
|
||||||
})
|
})
|
||||||
|
|
||||||
basic.forever(() => {
|
basic.forever(() => {
|
||||||
basic.showNumber(count)
|
basic.showNumber(count)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user