From 3e133aa66eefbcc6602ecf8991fda510c7462f8f Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 29 Mar 2016 11:35:14 -0700 Subject: [PATCH 01/13] Bump kindscript to 0.1.117 --- package.json | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 33a47276..713d4f68 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,35 @@ { - "name": "kindscript-microbit", - "version": "0.0.10", - "description": "BBC micro:bit target for KindScript", - "keywords": [ - "JavaScript", - "education", - "microbit" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/Microsoft/kindscript-microbit.git" - }, - "author": "", - "license": "MIT", - "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", - "files": [ - "README.md", - "kindtarget.json", - "kindtheme.json", - "built/*.js", - "built/*.json", - "built/*.d.ts", - "sim/public", - "docs/*.md", - "docs/*/*.md", - "docs/*/*/*.md" - ], - "devDependencies": { - "typescript": "^1.8.7" - }, - "dependencies": { - "kindscript": "0.1.115" - } + "name": "kindscript-microbit", + "version": "0.0.10", + "description": "BBC micro:bit target for KindScript", + "keywords": [ + "JavaScript", + "education", + "microbit" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/Microsoft/kindscript-microbit.git" + }, + "author": "", + "license": "MIT", + "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", + "files": [ + "README.md", + "kindtarget.json", + "kindtheme.json", + "built/*.js", + "built/*.json", + "built/*.d.ts", + "sim/public", + "docs/*.md", + "docs/*/*.md", + "docs/*/*/*.md" + ], + "devDependencies": { + "typescript": "^1.8.7" + }, + "dependencies": { + "kindscript": "0.1.117" + } } From 816d7383906d6c77a78b942742b1b756a938e632 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 29 Mar 2016 11:35:17 -0700 Subject: [PATCH 02/13] 0.0.11 --- package.json | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 713d4f68..a442a2e9 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,35 @@ { - "name": "kindscript-microbit", - "version": "0.0.10", - "description": "BBC micro:bit target for KindScript", - "keywords": [ - "JavaScript", - "education", - "microbit" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/Microsoft/kindscript-microbit.git" - }, - "author": "", - "license": "MIT", - "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", - "files": [ - "README.md", - "kindtarget.json", - "kindtheme.json", - "built/*.js", - "built/*.json", - "built/*.d.ts", - "sim/public", - "docs/*.md", - "docs/*/*.md", - "docs/*/*/*.md" - ], - "devDependencies": { - "typescript": "^1.8.7" - }, - "dependencies": { - "kindscript": "0.1.117" - } + "name": "kindscript-microbit", + "version": "0.0.11", + "description": "BBC micro:bit target for KindScript", + "keywords": [ + "JavaScript", + "education", + "microbit" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/Microsoft/kindscript-microbit.git" + }, + "author": "", + "license": "MIT", + "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", + "files": [ + "README.md", + "kindtarget.json", + "kindtheme.json", + "built/*.js", + "built/*.json", + "built/*.d.ts", + "sim/public", + "docs/*.md", + "docs/*/*.md", + "docs/*/*/*.md" + ], + "devDependencies": { + "typescript": "^1.8.7" + }, + "dependencies": { + "kindscript": "0.1.117" + } } From c43088c0996f653558658946a2e0be79497c7f0c Mon Sep 17 00:00:00 2001 From: Michael Elliot Braun Date: Tue, 29 Mar 2016 11:57:50 -0700 Subject: [PATCH 03/13] quiz update --- docs/lessons/blink/quiz-answers.md | 15 +++++++-- docs/lessons/blink/quiz.md | 19 +++++++++--- docs/lessons/flashing-heart/quiz-answers.md | 10 +++--- docs/lessons/flashing-heart/quiz.md | 7 +---- docs/lessons/love-meter/quiz-answers.md | 6 +++- docs/lessons/love-meter/quiz.md | 6 +--- docs/lessons/screen-wipe/quiz-answers.md | 24 +++++++++++++-- docs/lessons/screen-wipe/quiz.md | 7 ++--- docs/lessons/smiley/quiz-answers.md | 27 ++++++++++++++-- docs/lessons/smiley/quiz.md | 34 ++++++++++++++++----- docs/lessons/snowflake-fall/quiz-answers.md | 12 +++++++- docs/lessons/snowflake-fall/quiz.md | 20 +++++++++--- 12 files changed, 141 insertions(+), 46 deletions(-) diff --git a/docs/lessons/blink/quiz-answers.md b/docs/lessons/blink/quiz-answers.md index b10b9f9b..f4dd204c 100644 --- a/docs/lessons/blink/quiz-answers.md +++ b/docs/lessons/blink/quiz-answers.md @@ -10,7 +10,10 @@ Answers will vary. In general, plot refers to the code that turns on a specific ## 2. Draw which LED is ON after running this code -![](/static/mb/blocks/lessons/blink-6.png) +```blocks +led.plot(2, 2) + +``` ![](/static/mb/lessons/blink-0.png) @@ -18,7 +21,10 @@ By default, the position of an LED on *Blink Tutorial* is set to the centre of t ## 3. Draw which LED is ON after running this code -![](/static/mb/blocks/lessons/blink-7.png) +```blocks +led.plot(0, 0) + +``` ![](/static/mb/lessons/blink-1.png) @@ -29,7 +35,10 @@ This code turns on specific LED. Plot turns on the specified LED on the LED scre ## 4. Draw which LED is ON after running this code -![](/static/mb/blocks/lessons/blink-8.png) +```blocks +led.plot(4, 4) + +``` ![](/static/mb/lessons/blink-2.png) diff --git a/docs/lessons/blink/quiz.md b/docs/lessons/blink/quiz.md index 3081d163..e91fdccb 100644 --- a/docs/lessons/blink/quiz.md +++ b/docs/lessons/blink/quiz.md @@ -12,23 +12,34 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu ## 1. Describe what `plot` does? -
+ ## 2. Draw which LED is ON after running this code -![](/static/mb/blocks/lessons/blink-6.png) +```blocks +led.plot(2, 2) + +``` ![](/static/mb/empty-microbit.png) ## 3. Draw which LED is ON after running this code -![](/static/mb/blocks/lessons/blink-7.png) +```blocks +led.plot(0, 0) + +``` ![](/static/mb/empty-microbit.png) ## 4. Draw which LED is ON after running this code -![](/static/mb/blocks/lessons/blink-8.png) + +```blocks +led.plot(4, 4) + +``` + ![](/static/mb/empty-microbit.png) diff --git a/docs/lessons/flashing-heart/quiz-answers.md b/docs/lessons/flashing-heart/quiz-answers.md index da284d64..99ea40de 100644 --- a/docs/lessons/flashing-heart/quiz-answers.md +++ b/docs/lessons/flashing-heart/quiz-answers.md @@ -10,13 +10,15 @@ Pause program execution for the specified number of milliseconds. ## 2. Write the code that leaves an image on the screen for 1 second (1000 milliseconds) -
-![](/static/mb/blocks/lessons/flashing-heart-5.jpg) +```blocks +basic.pause(1000) +``` ## 3. Write the code that leaves an image on the screen for 1.5 seconds (1500 milliseconds) -![](/static/mb/blocks/lessons/flashing-heart-6.jpg) +```blocks +basic.pause(1500) +``` -
diff --git a/docs/lessons/flashing-heart/quiz.md b/docs/lessons/flashing-heart/quiz.md index fe502c44..50386b96 100644 --- a/docs/lessons/flashing-heart/quiz.md +++ b/docs/lessons/flashing-heart/quiz.md @@ -12,19 +12,14 @@ Answer the questions while completing the activity. Pay attention to the dialogu ## 1. Describe what `pause` does? -
-
## 2. Write the code that leaves an image on the screen for 1 second (1000 milliseconds) -
-
+ ## 3. Write the code that leaves an image on the screen for 1.5 seconds (1500 milliseconds) -
-
diff --git a/docs/lessons/love-meter/quiz-answers.md b/docs/lessons/love-meter/quiz-answers.md index ce7e033d..9e2ee85a 100644 --- a/docs/lessons/love-meter/quiz-answers.md +++ b/docs/lessons/love-meter/quiz-answers.md @@ -14,7 +14,11 @@ It's a method that runs code when the user holds the GND pin with a finger of on Create a condition for `on pin pressed (P0)`. -![](/static/mb/blocks/lessons/love-meter-0.jpg) +```blocks +input.onPinPressed(TouchPin.P0, () => { + +}) +``` ## 3. What does this line of code doing? diff --git a/docs/lessons/love-meter/quiz.md b/docs/lessons/love-meter/quiz.md index 744d1edd..7e6af5d9 100644 --- a/docs/lessons/love-meter/quiz.md +++ b/docs/lessons/love-meter/quiz.md @@ -12,25 +12,21 @@ Answer the questions below while completing the activity. Pay attention to the d ## 1. Describe what `on pin pressed` does? -
## 2. Create a condition for on pin pressed (P0). -
## 3. Describe what this line of code does? ![](/static/mb/blocks/lessons/love-meter-6.png) -
+ ## 4. Describe what adding 1 to variable x does? ![](/static/mb/blocks/lessons/love-meter-7.png) -
## 5. Describe why you must hold ground (GND) before pressing (P0) to run a program using `on pin pressed(P0)` on the micro:bit -
diff --git a/docs/lessons/screen-wipe/quiz-answers.md b/docs/lessons/screen-wipe/quiz-answers.md index f6000dab..cdc56e24 100644 --- a/docs/lessons/screen-wipe/quiz-answers.md +++ b/docs/lessons/screen-wipe/quiz-answers.md @@ -12,13 +12,31 @@ This function turns off all the LED lights on the LED screen. ![](/static/mb/blocks/lessons/screen-wipe-4.png) -![](/static/mb/blocks/lessons/screen-wipe-5.png) +```blocks +basic.showLeds(` + . # . # . + . # . # . + . . # . . + # . . . # + . # # # . + `) +``` ## 3. Write the condition that will detect on button A pressed -![](/static/mb/blocks/lessons/screen-wipe-6.png) +```blocks + +input.onButtonPressed(Button.A, () => { + +}) + +``` ## 4. Write the code that will clear show LEDS from the screen after pressing button A -![](/static/mb/blocks/lessons/screen-wipe-7.png) +```blocks +input.onButtonPressed(Button.A, () => { + basic.clearScreen() +}) +``` diff --git a/docs/lessons/screen-wipe/quiz.md b/docs/lessons/screen-wipe/quiz.md index ab4e9904..31c9d0f4 100644 --- a/docs/lessons/screen-wipe/quiz.md +++ b/docs/lessons/screen-wipe/quiz.md @@ -12,19 +12,18 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu ## 1. Describe what "clear screen" does? -
+ ## 2. Write the code that clears an image from the screen ![](/static/mb/blocks/lessons/screen-wipe-4.png) -
## 3. Write the condition that will detect on button A pressed -
+ ## 4. Write the code that will clear show LEDS from the screen after pressing button A -
+ diff --git a/docs/lessons/smiley/quiz-answers.md b/docs/lessons/smiley/quiz-answers.md index 64211b3d..5df15ec5 100644 --- a/docs/lessons/smiley/quiz-answers.md +++ b/docs/lessons/smiley/quiz-answers.md @@ -16,13 +16,36 @@ The extra empty image with show LED creates a blinking smiley, allowing the micr ## 3. Draw the image created with this code -![](/static/mb/blocks/lessons/smiley-3.png) +```blocks +basic.showLeds(` + . # . # . + . # . # . + . . . . . + # . . . # + . # # # . + `) +``` ![](/static/mb/blocks/lessons/smiley-4.png) ## 4. Write the code to make this image -![](/static/mb/blocks/lessons/smiley-5.png) +```blocks +basic.showLeds(` + . # . # . + . # . # . + . . . . . + # . . . # + . # # # . + `) +basic.showLeds(` + . . . . . + . . . . . + . . . . . + . . . . . + . . . . . + `) +``` ![](/static/mb/blocks/lessons/smiley-6.png) diff --git a/docs/lessons/smiley/quiz.md b/docs/lessons/smiley/quiz.md index a1ce64d8..75c095ed 100644 --- a/docs/lessons/smiley/quiz.md +++ b/docs/lessons/smiley/quiz.md @@ -10,27 +10,45 @@ Use the hints in the [Smiley](/microbit/lessons/smiley/activity) activity to ans ## 1. Describe what `show LEDs` does -
- -
## 2. Why is there an extra empty frame after the smiley face? ![](/static/mb/lessons/smiley-0.png) -
+ ## 3. Draw the image created with this code -![](/static/mb/blocks/lessons/smiley-3.png) +```blocks +basic.showLeds(` + . # . # . + . # . # . + . . . . . + # . . . # + . # # # . + `) +``` ![](/static/mb/empty-microbit.png) -
- ## 4. Draw the images created with this code -![](/static/mb/blocks/lessons/smiley-5.png) +```blocks +basic.showLeds(` + . # . # . + . # . # . + . . . . . + # . . . # + . # # # . + `) +basic.showLeds(` + . . . . . + . . . . . + . . . . . + . . . . . + . . . . . + `) +``` ![](/static/mb/lessons/looper-3.png) diff --git a/docs/lessons/snowflake-fall/quiz-answers.md b/docs/lessons/snowflake-fall/quiz-answers.md index 4d11b2e5..3cb3855e 100644 --- a/docs/lessons/snowflake-fall/quiz-answers.md +++ b/docs/lessons/snowflake-fall/quiz-answers.md @@ -10,7 +10,17 @@ Run code in the background forever (answers may vary). ## 2. Draw the picture that will be produced with this code -![](/static/mb/blocks/lessons/snowflake-fall-4.png) +```blocks +basic.forever(() => { + basic.showLeds(` +. # . # . +# # # # # +# # # # # +. # # # . +. . # . .`); +}); + +``` ![](/static/mb/lessons/flashing-heart-0.png) diff --git a/docs/lessons/snowflake-fall/quiz.md b/docs/lessons/snowflake-fall/quiz.md index cbd997c5..66978700 100644 --- a/docs/lessons/snowflake-fall/quiz.md +++ b/docs/lessons/snowflake-fall/quiz.md @@ -10,21 +10,31 @@ Use the hints in the [snowflake fall activity](/microbit/lessons/snowflake-fall/ ## 1. What is a forever loop? -
+ ## 2. Draw the picture that will be produced with this code -![](/static/mb/blocks/lessons/snowflake-fall-4.png) +```blocks +basic.forever(() => { + basic.showLeds(` +. # . # . +# # # # # +# # # # # +. # # # . +. . # . .`); +}); + +``` ![](/static/mb/empty-microbit.png) -
+ ## 3. Write the code for a forever loop and show LEDS for these images! ![](/static/mb/lessons/snowflake-fall-0.png) -
+ ## 4. Write the code for a forever loop and show LEDS for these images! @@ -32,5 +42,5 @@ Use the hints in the [snowflake fall activity](/microbit/lessons/snowflake-fall/ ![](/static/mb/lessons/snowflake-fall-2.png) -
+ From 8cbd8e5a74d7fae0b1cff79253f9c8e7029b515b Mon Sep 17 00:00:00 2001 From: Michael Elliot Braun Date: Tue, 29 Mar 2016 13:13:18 -0700 Subject: [PATCH 04/13] quiz updates --- docs/lessons/compass/quiz-answers.md | 9 ++------- docs/lessons/compass/quiz.md | 10 ++-------- docs/lessons/love-meter/quiz-answers.md | 14 ++++++++------ docs/lessons/love-meter/quiz.md | 11 +++++++++-- 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/docs/lessons/compass/quiz-answers.md b/docs/lessons/compass/quiz-answers.md index e7afef16..488f005f 100644 --- a/docs/lessons/compass/quiz-answers.md +++ b/docs/lessons/compass/quiz-answers.md @@ -14,11 +14,9 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu Gets the compass heading of the micro:bit in degrees -
## 2. Write the code that stores the compass heading into a local variable called 'degrees'. -
``` let degrees = input.compassHeading() @@ -26,7 +24,6 @@ let degrees = input.compassHeading() ## 3. Write the 'If statement' that will check if the device is mostly pointing North. Display 'N' on the micro:bit -
``` if (degrees < 45) { @@ -34,9 +31,8 @@ if (degrees < 45) { } ``` -## 3. Write the 'If statement' that will check if the device is mostly pointing East. Display 'E' on the micro:bit +## 4. Write the 'If statement' that will check if the device is mostly pointing East. Display 'E' on the micro:bit -
``` if (degrees < 135) { @@ -44,9 +40,8 @@ if (degrees < 135) { } ``` -## 3. Write the 'If statement' that will check if the device is mostly pointing South. Display 'S' on the micro:bit +## 5. Write the 'If statement' that will check if the device is mostly pointing South. Display 'S' on the micro:bit -
``` if (degrees < 225) { diff --git a/docs/lessons/compass/quiz.md b/docs/lessons/compass/quiz.md index 8217cdab..47452e6d 100644 --- a/docs/lessons/compass/quiz.md +++ b/docs/lessons/compass/quiz.md @@ -12,21 +12,15 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu ## 1. What is the purpose of the 'compass heading' block? -
- ## 2. Write the code that stores the compass heading into a local variable called 'degrees'. -
## 3. Write the 'If statement' that will check if the device is mostly pointing North. Display 'N' on the micro:bit -
-## 3. Write the 'If statement' that will check if the device is mostly pointing East. Display 'E' on the micro:bit +## 4. Write the 'If statement' that will check if the device is mostly pointing East. Display 'E' on the micro:bit -
-## 3. Write the 'If statement' that will check if the device is mostly pointing South. Display 'S' on the micro:bit +## 5. Write the 'If statement' that will check if the device is mostly pointing South. Display 'S' on the micro:bit -
diff --git a/docs/lessons/love-meter/quiz-answers.md b/docs/lessons/love-meter/quiz-answers.md index 9e2ee85a..4c95d526 100644 --- a/docs/lessons/love-meter/quiz-answers.md +++ b/docs/lessons/love-meter/quiz-answers.md @@ -22,23 +22,25 @@ input.onPinPressed(TouchPin.P0, () => { ## 3. What does this line of code doing? -![](/static/mb/blocks/lessons/love-meter-6.png) +```blocks +let x = Math.random(9) +``` -
It stores random number between 0 and 9 then stores that number in a variable. ## 4. Why do you have to add 1 to variable x? -![](/static/mb/blocks/lessons/love-meter-7.png) - -
+```blocks +let item = 0; +item = 0; +basic.showNumber(item + 1); +``` You have to add 1 if you want to generate a random number between 1 and 10 . ## 5. Why do you have to hold ground (GND) to make this work on the micro:bit? -
You have told GND to complete the circuit. diff --git a/docs/lessons/love-meter/quiz.md b/docs/lessons/love-meter/quiz.md index 7e6af5d9..b197570b 100644 --- a/docs/lessons/love-meter/quiz.md +++ b/docs/lessons/love-meter/quiz.md @@ -18,13 +18,20 @@ Answer the questions below while completing the activity. Pay attention to the d ## 3. Describe what this line of code does? -![](/static/mb/blocks/lessons/love-meter-6.png) +```blocks +let x = Math.random(9) +``` ## 4. Describe what adding 1 to variable x does? -![](/static/mb/blocks/lessons/love-meter-7.png) +```blocks +let item = 0; +item = 0; +basic.showNumber(item + 1); +``` + ## 5. Describe why you must hold ground (GND) before pressing (P0) to run a program using `on pin pressed(P0)` on the micro:bit From d9c51b5fd52dc25efbd116010c4eb4e1b0bb2be4 Mon Sep 17 00:00:00 2001 From: Michael Elliot Braun Date: Tue, 29 Mar 2016 13:17:00 -0700 Subject: [PATCH 05/13] docs update --- docs/lessons/answering-machine/quiz-answers.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/lessons/answering-machine/quiz-answers.md b/docs/lessons/answering-machine/quiz-answers.md index bc31bf8f..6466d87c 100644 --- a/docs/lessons/answering-machine/quiz-answers.md +++ b/docs/lessons/answering-machine/quiz-answers.md @@ -32,5 +32,10 @@ basic.showString("Hi") ![](/static/mb/lessons/answering-machine-2.png) -![](/static/mb/blocks/lessons/answering-machine-5.png) + +```blocks +basic.showString("Z") + +``` + From 8179e38e411e7abbae088a9e1aaf0363ece54137 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 29 Mar 2016 13:39:30 -0700 Subject: [PATCH 06/13] Bump kindscript to 0.1.118 --- package.json | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index a442a2e9..2cabc664 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,35 @@ { - "name": "kindscript-microbit", - "version": "0.0.11", - "description": "BBC micro:bit target for KindScript", - "keywords": [ - "JavaScript", - "education", - "microbit" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/Microsoft/kindscript-microbit.git" - }, - "author": "", - "license": "MIT", - "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", - "files": [ - "README.md", - "kindtarget.json", - "kindtheme.json", - "built/*.js", - "built/*.json", - "built/*.d.ts", - "sim/public", - "docs/*.md", - "docs/*/*.md", - "docs/*/*/*.md" - ], - "devDependencies": { - "typescript": "^1.8.7" - }, - "dependencies": { - "kindscript": "0.1.117" - } + "name": "kindscript-microbit", + "version": "0.0.11", + "description": "BBC micro:bit target for KindScript", + "keywords": [ + "JavaScript", + "education", + "microbit" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/Microsoft/kindscript-microbit.git" + }, + "author": "", + "license": "MIT", + "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", + "files": [ + "README.md", + "kindtarget.json", + "kindtheme.json", + "built/*.js", + "built/*.json", + "built/*.d.ts", + "sim/public", + "docs/*.md", + "docs/*/*.md", + "docs/*/*/*.md" + ], + "devDependencies": { + "typescript": "^1.8.7" + }, + "dependencies": { + "kindscript": "0.1.118" + } } From 491c5faaf6969b67d328b2392f7813c47aa55eba Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 29 Mar 2016 13:39:32 -0700 Subject: [PATCH 07/13] 0.0.12 --- package.json | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 2cabc664..70cd597c 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,35 @@ { - "name": "kindscript-microbit", - "version": "0.0.11", - "description": "BBC micro:bit target for KindScript", - "keywords": [ - "JavaScript", - "education", - "microbit" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/Microsoft/kindscript-microbit.git" - }, - "author": "", - "license": "MIT", - "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", - "files": [ - "README.md", - "kindtarget.json", - "kindtheme.json", - "built/*.js", - "built/*.json", - "built/*.d.ts", - "sim/public", - "docs/*.md", - "docs/*/*.md", - "docs/*/*/*.md" - ], - "devDependencies": { - "typescript": "^1.8.7" - }, - "dependencies": { - "kindscript": "0.1.118" - } + "name": "kindscript-microbit", + "version": "0.0.12", + "description": "BBC micro:bit target for KindScript", + "keywords": [ + "JavaScript", + "education", + "microbit" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/Microsoft/kindscript-microbit.git" + }, + "author": "", + "license": "MIT", + "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", + "files": [ + "README.md", + "kindtarget.json", + "kindtheme.json", + "built/*.js", + "built/*.json", + "built/*.d.ts", + "sim/public", + "docs/*.md", + "docs/*/*.md", + "docs/*/*/*.md" + ], + "devDependencies": { + "typescript": "^1.8.7" + }, + "dependencies": { + "kindscript": "0.1.118" + } } From d0fcd5f400e5aea2a8f6211e54ef0ad5a45c6d88 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 29 Mar 2016 13:47:07 -0700 Subject: [PATCH 08/13] 0.0.13 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 70cd597c..a64856aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kindscript-microbit", - "version": "0.0.12", + "version": "0.0.13", "description": "BBC micro:bit target for KindScript", "keywords": [ "JavaScript", From 8a14a95fcced65e333e985055e262effa52d5fbe Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 29 Mar 2016 13:55:34 -0700 Subject: [PATCH 09/13] Bump kindscript to 0.1.119 --- package.json | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index a64856aa..314c1448 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,35 @@ { - "name": "kindscript-microbit", - "version": "0.0.13", - "description": "BBC micro:bit target for KindScript", - "keywords": [ - "JavaScript", - "education", - "microbit" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/Microsoft/kindscript-microbit.git" - }, - "author": "", - "license": "MIT", - "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", - "files": [ - "README.md", - "kindtarget.json", - "kindtheme.json", - "built/*.js", - "built/*.json", - "built/*.d.ts", - "sim/public", - "docs/*.md", - "docs/*/*.md", - "docs/*/*/*.md" - ], - "devDependencies": { - "typescript": "^1.8.7" - }, - "dependencies": { - "kindscript": "0.1.118" - } + "name": "kindscript-microbit", + "version": "0.0.13", + "description": "BBC micro:bit target for KindScript", + "keywords": [ + "JavaScript", + "education", + "microbit" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/Microsoft/kindscript-microbit.git" + }, + "author": "", + "license": "MIT", + "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", + "files": [ + "README.md", + "kindtarget.json", + "kindtheme.json", + "built/*.js", + "built/*.json", + "built/*.d.ts", + "sim/public", + "docs/*.md", + "docs/*/*.md", + "docs/*/*/*.md" + ], + "devDependencies": { + "typescript": "^1.8.7" + }, + "dependencies": { + "kindscript": "0.1.119" + } } From d5488a3ae8719495a504637ced861032cc14a2a6 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 29 Mar 2016 13:55:36 -0700 Subject: [PATCH 10/13] 0.0.14 --- package.json | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 314c1448..156a3a32 100644 --- a/package.json +++ b/package.json @@ -1,35 +1,35 @@ { - "name": "kindscript-microbit", - "version": "0.0.13", - "description": "BBC micro:bit target for KindScript", - "keywords": [ - "JavaScript", - "education", - "microbit" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/Microsoft/kindscript-microbit.git" - }, - "author": "", - "license": "MIT", - "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", - "files": [ - "README.md", - "kindtarget.json", - "kindtheme.json", - "built/*.js", - "built/*.json", - "built/*.d.ts", - "sim/public", - "docs/*.md", - "docs/*/*.md", - "docs/*/*/*.md" - ], - "devDependencies": { - "typescript": "^1.8.7" - }, - "dependencies": { - "kindscript": "0.1.119" - } + "name": "kindscript-microbit", + "version": "0.0.14", + "description": "BBC micro:bit target for KindScript", + "keywords": [ + "JavaScript", + "education", + "microbit" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/Microsoft/kindscript-microbit.git" + }, + "author": "", + "license": "MIT", + "homepage": "https://github.com/Microsoft/kindscript-microbit#readme", + "files": [ + "README.md", + "kindtarget.json", + "kindtheme.json", + "built/*.js", + "built/*.json", + "built/*.d.ts", + "sim/public", + "docs/*.md", + "docs/*/*.md", + "docs/*/*/*.md" + ], + "devDependencies": { + "typescript": "^1.8.7" + }, + "dependencies": { + "kindscript": "0.1.119" + } } From 3ccec89f33e23b139d401994ef411b317fe84921 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 29 Mar 2016 14:19:56 -0700 Subject: [PATCH 11/13] updated demo program --- docs/about.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/about.md b/docs/about.md index 6d7f18e1..f301c3ce 100644 --- a/docs/about.md +++ b/docs/about.md @@ -36,6 +36,14 @@ input.onButtonPressed(Button.A, () => { # . . . # . # # # .`); }); +input.onButtonPressed(Button.B, () => { + basic.showLeds(` +. # . # . +# . # . # +# . . . # +. # . # . +. . # . .`); +}); input.onGesture(Gesture.Shake, () => { basic.showLeds(` . . . . . @@ -44,6 +52,7 @@ input.onGesture(Gesture.Shake, () => { . # # # . # . . . #`); }); +basic.showString("BBC micro:bit"); ``` ## C++ Runtime From 00adabe441a4af7070f2aee1fed8448b8fa36a03 Mon Sep 17 00:00:00 2001 From: Michael Elliot Braun Date: Tue, 29 Mar 2016 15:14:16 -0700 Subject: [PATCH 12/13] file management quizzes --- docs/{reference/js => }/lessons/counter/quiz-answers.md | 0 docs/{reference/js => }/lessons/counter/quiz.md | 0 docs/{reference/js => }/lessons/die-roll/quiz.md | 0 docs/{reference/js => }/lessons/guess-the-number/quiz-answers.md | 0 docs/{reference/js => }/lessons/guess-the-number/quiz.md | 0 docs/{reference/js => }/lessons/looper/quiz-answers.md | 0 docs/{reference/js => }/lessons/looper/quiz.md | 0 docs/{reference/js => }/lessons/magic-8/quiz-answers.md | 0 docs/{reference/js => }/lessons/magic-8/quiz.md | 0 docs/{reference/js => }/lessons/magic-logo/quiz-answers.md | 0 docs/{reference/js => }/lessons/magic-logo/quiz.md | 0 docs/{reference/js => }/lessons/night-light/quiz-answers.md | 0 docs/{reference/js => }/lessons/night-light/quiz.md | 0 docs/{reference/js => }/lessons/rock-paper-scissors/quiz.md | 0 docs/{reference/js => }/lessons/spinner/quiz-answers.md | 0 docs/{reference/js => }/lessons/spinner/quiz.md | 0 docs/{reference/js => }/lessons/strobe-light/quiz-answers.md | 0 docs/{reference/js => }/lessons/strobe-light/quiz.md | 0 docs/{reference/js => }/lessons/truth-or-dare/quiz-answers.md | 0 docs/{reference/js => }/lessons/truth-or-dare/quiz.md | 0 20 files changed, 0 insertions(+), 0 deletions(-) rename docs/{reference/js => }/lessons/counter/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/counter/quiz.md (100%) rename docs/{reference/js => }/lessons/die-roll/quiz.md (100%) rename docs/{reference/js => }/lessons/guess-the-number/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/guess-the-number/quiz.md (100%) rename docs/{reference/js => }/lessons/looper/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/looper/quiz.md (100%) rename docs/{reference/js => }/lessons/magic-8/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/magic-8/quiz.md (100%) rename docs/{reference/js => }/lessons/magic-logo/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/magic-logo/quiz.md (100%) rename docs/{reference/js => }/lessons/night-light/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/night-light/quiz.md (100%) rename docs/{reference/js => }/lessons/rock-paper-scissors/quiz.md (100%) rename docs/{reference/js => }/lessons/spinner/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/spinner/quiz.md (100%) rename docs/{reference/js => }/lessons/strobe-light/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/strobe-light/quiz.md (100%) rename docs/{reference/js => }/lessons/truth-or-dare/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/truth-or-dare/quiz.md (100%) diff --git a/docs/reference/js/lessons/counter/quiz-answers.md b/docs/lessons/counter/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/counter/quiz-answers.md rename to docs/lessons/counter/quiz-answers.md diff --git a/docs/reference/js/lessons/counter/quiz.md b/docs/lessons/counter/quiz.md similarity index 100% rename from docs/reference/js/lessons/counter/quiz.md rename to docs/lessons/counter/quiz.md diff --git a/docs/reference/js/lessons/die-roll/quiz.md b/docs/lessons/die-roll/quiz.md similarity index 100% rename from docs/reference/js/lessons/die-roll/quiz.md rename to docs/lessons/die-roll/quiz.md diff --git a/docs/reference/js/lessons/guess-the-number/quiz-answers.md b/docs/lessons/guess-the-number/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/guess-the-number/quiz-answers.md rename to docs/lessons/guess-the-number/quiz-answers.md diff --git a/docs/reference/js/lessons/guess-the-number/quiz.md b/docs/lessons/guess-the-number/quiz.md similarity index 100% rename from docs/reference/js/lessons/guess-the-number/quiz.md rename to docs/lessons/guess-the-number/quiz.md diff --git a/docs/reference/js/lessons/looper/quiz-answers.md b/docs/lessons/looper/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/looper/quiz-answers.md rename to docs/lessons/looper/quiz-answers.md diff --git a/docs/reference/js/lessons/looper/quiz.md b/docs/lessons/looper/quiz.md similarity index 100% rename from docs/reference/js/lessons/looper/quiz.md rename to docs/lessons/looper/quiz.md diff --git a/docs/reference/js/lessons/magic-8/quiz-answers.md b/docs/lessons/magic-8/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/magic-8/quiz-answers.md rename to docs/lessons/magic-8/quiz-answers.md diff --git a/docs/reference/js/lessons/magic-8/quiz.md b/docs/lessons/magic-8/quiz.md similarity index 100% rename from docs/reference/js/lessons/magic-8/quiz.md rename to docs/lessons/magic-8/quiz.md diff --git a/docs/reference/js/lessons/magic-logo/quiz-answers.md b/docs/lessons/magic-logo/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/magic-logo/quiz-answers.md rename to docs/lessons/magic-logo/quiz-answers.md diff --git a/docs/reference/js/lessons/magic-logo/quiz.md b/docs/lessons/magic-logo/quiz.md similarity index 100% rename from docs/reference/js/lessons/magic-logo/quiz.md rename to docs/lessons/magic-logo/quiz.md diff --git a/docs/reference/js/lessons/night-light/quiz-answers.md b/docs/lessons/night-light/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/night-light/quiz-answers.md rename to docs/lessons/night-light/quiz-answers.md diff --git a/docs/reference/js/lessons/night-light/quiz.md b/docs/lessons/night-light/quiz.md similarity index 100% rename from docs/reference/js/lessons/night-light/quiz.md rename to docs/lessons/night-light/quiz.md diff --git a/docs/reference/js/lessons/rock-paper-scissors/quiz.md b/docs/lessons/rock-paper-scissors/quiz.md similarity index 100% rename from docs/reference/js/lessons/rock-paper-scissors/quiz.md rename to docs/lessons/rock-paper-scissors/quiz.md diff --git a/docs/reference/js/lessons/spinner/quiz-answers.md b/docs/lessons/spinner/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/spinner/quiz-answers.md rename to docs/lessons/spinner/quiz-answers.md diff --git a/docs/reference/js/lessons/spinner/quiz.md b/docs/lessons/spinner/quiz.md similarity index 100% rename from docs/reference/js/lessons/spinner/quiz.md rename to docs/lessons/spinner/quiz.md diff --git a/docs/reference/js/lessons/strobe-light/quiz-answers.md b/docs/lessons/strobe-light/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/strobe-light/quiz-answers.md rename to docs/lessons/strobe-light/quiz-answers.md diff --git a/docs/reference/js/lessons/strobe-light/quiz.md b/docs/lessons/strobe-light/quiz.md similarity index 100% rename from docs/reference/js/lessons/strobe-light/quiz.md rename to docs/lessons/strobe-light/quiz.md diff --git a/docs/reference/js/lessons/truth-or-dare/quiz-answers.md b/docs/lessons/truth-or-dare/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/truth-or-dare/quiz-answers.md rename to docs/lessons/truth-or-dare/quiz-answers.md diff --git a/docs/reference/js/lessons/truth-or-dare/quiz.md b/docs/lessons/truth-or-dare/quiz.md similarity index 100% rename from docs/reference/js/lessons/truth-or-dare/quiz.md rename to docs/lessons/truth-or-dare/quiz.md From 0e816f2398d39bbadaa83835c20fc7401628cb79 Mon Sep 17 00:00:00 2001 From: Michael Elliot Braun Date: Tue, 29 Mar 2016 15:21:17 -0700 Subject: [PATCH 13/13] moved remaining quizzes --- docs/{reference/js => }/lessons/digi-yoyo/quiz-answers.md | 0 docs/{reference/js => }/lessons/digi-yoyo/quiz.md | 0 docs/{reference/js => }/lessons/glowing-pendulum/quiz-answers.md | 0 docs/{reference/js => }/lessons/glowing-pendulum/quiz.md | 0 .../{reference/js => }/lessons/rotation-animation/quiz-answers.md | 0 docs/{reference/js => }/lessons/rotation-animation/quiz.md | 0 docs/{reference/js => }/lessons/zoomer/quiz-answers.md | 0 docs/{reference/js => }/lessons/zoomer/quiz.md | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename docs/{reference/js => }/lessons/digi-yoyo/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/digi-yoyo/quiz.md (100%) rename docs/{reference/js => }/lessons/glowing-pendulum/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/glowing-pendulum/quiz.md (100%) rename docs/{reference/js => }/lessons/rotation-animation/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/rotation-animation/quiz.md (100%) rename docs/{reference/js => }/lessons/zoomer/quiz-answers.md (100%) rename docs/{reference/js => }/lessons/zoomer/quiz.md (100%) diff --git a/docs/reference/js/lessons/digi-yoyo/quiz-answers.md b/docs/lessons/digi-yoyo/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/digi-yoyo/quiz-answers.md rename to docs/lessons/digi-yoyo/quiz-answers.md diff --git a/docs/reference/js/lessons/digi-yoyo/quiz.md b/docs/lessons/digi-yoyo/quiz.md similarity index 100% rename from docs/reference/js/lessons/digi-yoyo/quiz.md rename to docs/lessons/digi-yoyo/quiz.md diff --git a/docs/reference/js/lessons/glowing-pendulum/quiz-answers.md b/docs/lessons/glowing-pendulum/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/glowing-pendulum/quiz-answers.md rename to docs/lessons/glowing-pendulum/quiz-answers.md diff --git a/docs/reference/js/lessons/glowing-pendulum/quiz.md b/docs/lessons/glowing-pendulum/quiz.md similarity index 100% rename from docs/reference/js/lessons/glowing-pendulum/quiz.md rename to docs/lessons/glowing-pendulum/quiz.md diff --git a/docs/reference/js/lessons/rotation-animation/quiz-answers.md b/docs/lessons/rotation-animation/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/rotation-animation/quiz-answers.md rename to docs/lessons/rotation-animation/quiz-answers.md diff --git a/docs/reference/js/lessons/rotation-animation/quiz.md b/docs/lessons/rotation-animation/quiz.md similarity index 100% rename from docs/reference/js/lessons/rotation-animation/quiz.md rename to docs/lessons/rotation-animation/quiz.md diff --git a/docs/reference/js/lessons/zoomer/quiz-answers.md b/docs/lessons/zoomer/quiz-answers.md similarity index 100% rename from docs/reference/js/lessons/zoomer/quiz-answers.md rename to docs/lessons/zoomer/quiz-answers.md diff --git a/docs/reference/js/lessons/zoomer/quiz.md b/docs/lessons/zoomer/quiz.md similarity index 100% rename from docs/reference/js/lessons/zoomer/quiz.md rename to docs/lessons/zoomer/quiz.md