Hide DAL.x behind Enum

This commit is contained in:
Amerlander
2020-02-20 17:00:11 +01:00
parent 004b1d9662
commit 07fe2645cf
56 changed files with 101 additions and 101 deletions

View File

@ -43,7 +43,7 @@ let num = 0
basic.forever(() => {
basic.showNumber(num)
})
input.input.onButtonEvent(Button.A, DAL.MICROBIT_BUTTON_EVT_CLICK, () => {
input.input.onButtonEvent(Button.A, ButtonEvent.Click, () => {
num = num + 1
})
```
@ -59,7 +59,7 @@ Try this on your @boardname@:
basic.forever(() => {
basic.showNumber(6789)
})
input.input.onButtonEvent(Button.A, DAL.MICROBIT_BUTTON_EVT_CLICK, () => {
input.input.onButtonEvent(Button.A, ButtonEvent.Click, () => {
basic.showNumber(2)
})
```