Hide DAL.x behind Enum
This commit is contained in:
1 parent
004b1d9662
commit
07fe2645cf
56 files changed
+101
-101
No files matched your search
@@ -22,13 +22,13 @@ Here's a program that simulates cell life in the LED matrix. Use button ``A`` fo
|
||||
let lifeChart: Image = null
|
||||
|
||||
//Use button A for the next iteration of game of life
|
||||
input.input.onButtonEvent(Button.A, DAL.MICROBIT_BUTTON_EVT_CLICK, () => {
|
||||
input.input.onButtonEvent(Button.A, ButtonEvent.Click, () => {
|
||||
gameOfLife();
|
||||
show();
|
||||
})
|
||||
|
||||
//Use button B for reseting to random initial seed state
|
||||
input.input.onButtonEvent(Button.B, DAL.MICROBIT_BUTTON_EVT_CLICK, () => {
|
||||
input.input.onButtonEvent(Button.B, ButtonEvent.Click, () => {
|
||||
reset();
|
||||
show();
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user