update speed lesson
This commit is contained in:
@ -37,7 +37,7 @@ input.onButtonPressed(Button.A, () => {
|
|||||||
## 4. Draw which LED is ON after running this code and pressing Button A five times. Explain why you chose to draw that number.
|
## 4. Draw which LED is ON after running this code and pressing Button A five times. Explain why you chose to draw that number.
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
count_ = 0
|
let count_ = 0
|
||||||
input.onButtonPressed(Button.A, () => {
|
input.onButtonPressed(Button.A, () => {
|
||||||
count_ = count_ + 1
|
count_ = count_ + 1
|
||||||
basic.showNumber(count_, 100)
|
basic.showNumber(count_, 100)
|
||||||
|
Reference in New Issue
Block a user