bring back deprecated blocks, but hide them
This commit is contained in:
@ -9,7 +9,7 @@ input.input.onButtonEvent(Button.A, ButtonEvent.Click, () => {
|
||||
input.onGesture(Gesture.Shake, () => {
|
||||
|
||||
});
|
||||
input.onPinEvent(TouchPin.P0, Button.Click, () => {
|
||||
input.onPinTouched(TouchPin.P0, Button.Click, () => {
|
||||
|
||||
});
|
||||
input.buttonIsPressed(Button.A);
|
||||
|
@ -14,7 +14,7 @@ through your body and back into the @boardname@. This is called
|
||||
**completing a circuit**. It's like you're a big wire!
|
||||
|
||||
```sig
|
||||
input.onPinEvent(TouchPin.P0, Button.Click, () => {
|
||||
input.onPinTouched(TouchPin.P0, Button.Click, () => {
|
||||
})
|
||||
```
|
||||
|
||||
@ -43,7 +43,7 @@ Every time you press the pin, the program shows the number of times on the scree
|
||||
```blocks
|
||||
let count = 0
|
||||
basic.showNumber(count)
|
||||
input.onPinEvent(TouchPin.P0, Button.Click, () => {
|
||||
input.onPinTouched(TouchPin.P0, Button.Click, () => {
|
||||
count = count + 1
|
||||
basic.showNumber(count)
|
||||
})
|
||||
|
@ -13,7 +13,7 @@ through your body and back into the @boardname@. This is called
|
||||
**completing a circuit**. It's like you're a big wire!
|
||||
|
||||
```sig
|
||||
input.onPinEvent(TouchPin.P0, ButtonEvent.Click, () => {
|
||||
input.onPinTouched(TouchPin.P0, ButtonEvent.Click, () => {
|
||||
})
|
||||
```
|
||||
|
||||
@ -36,7 +36,7 @@ Every time you release the pin, the program shows the number of times on the scr
|
||||
```blocks
|
||||
let count = 0
|
||||
basic.showNumber(count, 100)
|
||||
input.onPinEvent(TouchPin.P0, ButtonEvent.Click, () => {
|
||||
input.onPinTouched(TouchPin.P0, ButtonEvent.Click, () => {
|
||||
count = count + 1
|
||||
basic.showNumber(count, 100)
|
||||
})
|
||||
|
Reference in New Issue
Block a user