quiz update
This commit is contained in:
@ -14,7 +14,11 @@ It's a method that runs code when the user holds the GND pin with a finger of on
|
||||
|
||||
Create a condition for `on pin pressed (P0)`.
|
||||
|
||||

|
||||
```blocks
|
||||
input.onPinPressed(TouchPin.P0, () => {
|
||||
|
||||
})
|
||||
```
|
||||
|
||||
## 3. What does this line of code doing?
|
||||
|
||||
|
@ -12,25 +12,21 @@ Answer the questions below while completing the activity. Pay attention to the d
|
||||
|
||||
## 1. Describe what `on pin pressed` does?
|
||||
|
||||
<br/>
|
||||
|
||||
## 2. Create a condition for on pin pressed (P0).
|
||||
|
||||
<br/>
|
||||
|
||||
## 3. Describe what this line of code does?
|
||||
|
||||

|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
## 4. Describe what adding 1 to variable x does?
|
||||
|
||||

|
||||
|
||||
<br/>
|
||||
|
||||
## 5. Describe why you must hold ground (GND) before pressing (P0) to run a program using `on pin pressed(P0)` on the micro:bit
|
||||
|
||||
<br/>
|
||||
|
||||
|
Reference in New Issue
Block a user