From 7cbba949dbb4454fe8228cfcc4f51574f5c09704 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 30 Mar 2016 14:19:51 -0700 Subject: [PATCH 1/4] fixing answers --- docs/lessons/counter/quiz-answers.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/lessons/counter/quiz-answers.md b/docs/lessons/counter/quiz-answers.md index 154cd9bf..f109ca7c 100644 --- a/docs/lessons/counter/quiz-answers.md +++ b/docs/lessons/counter/quiz-answers.md @@ -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 ```blocks -let count_ = 0 +let count = 0 input.onButtonPressed(Button.A, () => { - count_ = count_ + 1 - basic.showNumber(count, 150) + count = count + 1 + 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 ```blocks -count_ = 0 +let count = 0 input.onButtonPressed(Button.A, () => { - count_ = count_ + 1 - basic.showNumber(count_, 100) + count = + 1 + basic.showNumber(count) }) ``` From ec36eaa4cff7f2c6bfcac5a48e6968c402111ed1 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 31 Mar 2016 10:49:45 -0700 Subject: [PATCH 2/4] updated kind.json --- kindtheme.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kindtheme.json b/kindtheme.json index 4a89991b..6485028c 100644 --- a/kindtheme.json +++ b/kindtheme.json @@ -5,6 +5,8 @@ "logoUrl": "https://www.microbit.co.uk/", "logo":"BBC micro:bitLayer 1", "footerLogo": "image/svg+xml", + "homeUrl": "https://codemicrobit.com/", + "embedUrl": "https://codemicrobit.com/", "koduUrl": "https://www.kodugamelab.com/bbc-microbit/", "visualStudioCode": true, "docMenu": [ From 6341f795c62a9ede44baac208e8cf820c5dc02f3 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Thu, 31 Mar 2016 12:10:30 -0700 Subject: [PATCH 3/4] Fix microbit ref --- libs/cpp-test/kind.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/cpp-test/kind.json b/libs/cpp-test/kind.json index 3c660dab..2a642ed7 100644 --- a/libs/cpp-test/kind.json +++ b/libs/cpp-test/kind.json @@ -12,6 +12,6 @@ } }, "dependencies": { - "core": "file:../microbit" + "microbit": "file:../microbit" } } From dea2f33234a1606eddd27329935a81246253e5de Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Thu, 31 Mar 2016 12:24:20 -0700 Subject: [PATCH 4/4] Ignore projects/ --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 971ce600..f14867ad 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ tmp/ *.tgz temp/ *.db +projects/