diff --git a/docs/about.md b/docs/about.md index e544a76b..f5164ac4 100644 --- a/docs/about.md +++ b/docs/about.md @@ -2,6 +2,24 @@ basic.forever(() => { basic.showString("Hi!"); }) +input.onButtonPressed(Button.A, () => { + led.stopAnimation(); + basic.showLeds(` +. . . . . +. # . # . +. . . . . +# . . . # +. # # # .`); +}); +input.onButtonPressed(Button.B, () => { + led.stopAnimation(); + basic.showLeds(` +. # . # . +# . # . # +# . . . # +. # . # . +. . # . .`); +}); ``` # About @@ -32,34 +50,6 @@ which flashes the micro:bit device with the new program. Before a student compiles her code for the micro:bit, she can run it using the micro:bit simulator, all within the confines of a web browser. The simulator has support for the LED screen, buttons, as well as compass, accelerometer, and digital I/O pins. -```sim -input.onButtonPressed(Button.A, () => { - basic.showLeds(` -. . . . . -. # . # . -. . . . . -# . . . # -. # # # .`); -}); -input.onButtonPressed(Button.B, () => { - basic.showLeds(` -. # . # . -# . # . # -# . . . # -. # . # . -. . # . .`); -}); -input.onGesture(Gesture.Shake, () => { - basic.showLeds(` -. . . . . -. # . # . -. . . . . -. # # # . -# . . . #`); -}); -basic.showString("BBC micro:bit"); -``` - ## C++ Runtime The [C++ BBC micro:bit runtime](http://lancaster-university.github.io/microbit-docs/), created at [Lancaster University](http://www.lancaster.ac.uk/), provides access to the hardware functions of the micro:bit, diff --git a/docs/lessons/bop-it/quiz.md b/docs/lessons/bop-it/quiz.md index 7b072e38..fc6b50c3 100644 --- a/docs/lessons/bop-it/quiz.md +++ b/docs/lessons/bop-it/quiz.md @@ -10,31 +10,29 @@ Use this activity document to guide your work in the [bop it tutorial](/lessons/ Answer the questions while completing the tutorial. Pay attention to the dialogues! -## 1. Write the code that will store the global variable named 'action' and returns a random number between 0 and 2 +### 1. Write the code that will store the global variable named 'action' and returns a random number between 0 and 2
-## 2. Write the code that will display the string, "PUSH A" if the global variable called 'action' is equal to 0 +### 2. Write the code that will display the string, "PUSH A" if the global variable called 'action' is equal to 0
-## 3. Write the code that increments the score if button A is pressed when the global variable called 'action' is equal to 1 +### 3. Write the code that increments the score if button A is pressed when the global variable called 'action' is equal to 1
-## 4. Write the code that will display the string "LOGO DOWN" if the global variable called 'action' is equal to 1 +### 4. Write the code that will display the string "LOGO DOWN" if the global variable called 'action' is equal to 1
-## 5. Write the code that increments the score if the BBC micro:bit logo is tilted down when the global variable called 'action' is equal to 1 +### 5. Write the code that increments the score if the BBC micro:bit logo is tilted down when the global variable called 'action' is equal to 1
-
- -## 6. Write the code that will display the string "SHAKE" if the global variable called 'action' is equal to 2 +### 6. Write the code that will display the string "SHAKE" if the global variable called 'action' is equal to 2
-## 7. Write the code that increments the score if the BBC micro:bit is shaken when the global variable called 'action' is equal to 2 +### 7. Write the code that increments the score if the BBC micro:bit is shaken when the global variable called 'action' is equal to 2 diff --git a/docs/static/docslogo.svg b/docs/static/docslogo.svg new file mode 100644 index 00000000..e2f5a912 --- /dev/null +++ b/docs/static/docslogo.svg @@ -0,0 +1 @@ +micro:bit logo \ No newline at end of file diff --git a/package.json b/package.json index dba39637..05b39254 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pxt-microbit", - "version": "0.2.64", + "version": "0.2.65", "description": "BBC micro:bit target for PXT", "keywords": [ "JavaScript", @@ -29,6 +29,6 @@ "typescript": "^1.8.7" }, "dependencies": { - "pxt-core": "0.2.68" + "pxt-core": "0.2.69" } } diff --git a/pxtarget.json b/pxtarget.json index 5b138e21..84fb1a95 100644 --- a/pxtarget.json +++ b/pxtarget.json @@ -71,6 +71,7 @@ "appTheme": { "logoUrl": "https://codemicrobit.com/about", "logo": "./static/logo.svg", + "docsLogo": "./static/docslogo.svg", "portraitLogo":"./static/portraitlogo.svg", "footerLogo": "./static/footerlogo.svg", "homeUrl": "https://codemicrobit.com/",