This commit is contained in:
Michael Elliot Braun 2016-03-31 14:10:52 -07:00
commit 7c862ce0f5
4 changed files with 10 additions and 7 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ tmp/
*.tgz *.tgz
temp/ temp/
*.db *.db
projects/

View File

@ -23,10 +23,10 @@ We create a **variable**, `count` to keep track of the current count. The number
## 3. Draw which LEDs are ON after running this code and pressing button "A" once. Explain you chose to draw that number ## 3. Draw which LEDs are ON after running this code and pressing button "A" once. Explain you chose to draw that number
```blocks ```blocks
let counts = 0 let count = 0
input.onButtonPressed(Button.A, () => { input.onButtonPressed(Button.A, () => {
counts = counts + 1 count = count + 1
basic.showNumber(counts, 150) basic.showNumber(count)
}) })
``` ```
@ -39,10 +39,10 @@ We are only pressing on button pressed once. So the number to display on the mic
## 4. Draw which LEDs are ON after running this code and pressing button "A" three times. Explain you chose to draw that number ## 4. Draw which LEDs are ON after running this code and pressing button "A" three times. Explain you chose to draw that number
```blocks ```blocks
let counting= 0 let count = 0
input.onButtonPressed(Button.A, () => { input.onButtonPressed(Button.A, () => {
counting = counting + 1 count = + 1
basic.showNumber(counting, 100) basic.showNumber(count)
}) })
``` ```

File diff suppressed because one or more lines are too long

View File

@ -12,6 +12,6 @@
} }
}, },
"dependencies": { "dependencies": {
"core": "file:../microbit" "microbit": "file:../microbit"
} }
} }