Cherry picked fixes from v0 to v1 (#1476)

* Fix example and do a few edits (#850)

* Small fixes to the Karel project text (#862)

* fix missing shadow type

* add calibration info (#897)

microbit-support:6348 User reported bug, but didn't realie micro:bit compass had to be calibrated on first run of the program.

* Cherry pick adding various cross-editor compat APIs (#863)

* fix nudge

* Fix a typo ("screent") in the documentation (#1012)

* Fix a typo
"screent" -> "the LED screen"

* Update showArrow doc string for consistency with other methods

* Doc bugs found by xlators (#899)

* Update rotation.md (#998)

reflects actual behaviour of the board

* fixed layout corruption (#1073)

* Updating the new bug filer with the right link

* Update challenges.md (#1325)

For what I'm taught in school, 2 follows 1 😉😉.

* Update simulator.md (#1209)

* Update plant watering.md (#1264)

the connection to servo are male not female

* support for MIDI simulator in v0 (#1331)

* Doc improvements (#1337)

* update grammar in radio-dashboard sample code

* Chanllenge 2 follows 1

I open all challenges.md without "Challenge 2" and review the file
`grep -r "Challenge 2" -L | grep challenge | xargs -I@ code @`

Changes to be committed:
	modified:   docs/lessons/counter/challenges.md
	modified:   docs/lessons/game-counter/challenges.md
	modified:   docs/lessons/night-light/challenges.md
	modified:   docs/lessons/snowflake-fall/challenges.md

* Revert "support for MIDI simulator in v0 (#1331)"

This reverts commit 30a9c411fb80762656e7a636feff8e77b7fd9e67.

* Revert "Cherry pick adding various cross-editor compat APIs (#863)"

This reverts commit 7308dbef23e9ee402bebb7e721d7014d8252c9e5.

* Fixed pin needed to replace button A (#1385)

* Cherry pick part of the signature update in in2cWriteBuffer (#863): 7308dbe
This commit is contained in:
Abhijith Chatra
2018-10-22 10:00:57 -07:00
committed by GitHub
parent ffe59b9d89
commit be7858cbed
27 changed files with 62 additions and 59 deletions

View File

@ -82,14 +82,18 @@ basic.forever(() => {
})
```
When a firefly receives a radio packet, it increments its clock by one:
When a firefly receives a radio packet
**and** it is not sending packet
, it increments its clock by one:
```block
// the clock ticker
let clock = 0
radio.onReceivedNumber(function (receivedNumber) {
// advance clock to catch up neighbors
clock += 1
if (clock < 8) {
clock += 1
}
})
```

View File

@ -79,7 +79,7 @@ music.playTone(261, music.beat(BeatFraction.Half))
## ~
## Step 3: Multiply Frequency using Math blocks
```blocks
```blocks
input.onButtonPressed(Button.A, () => {
music.playTone(261 * 2, music.beat(BeatFraction.Half))
})

View File

@ -11,7 +11,7 @@ Help Karel make LED art!
![](/static/mb/projects/karel/hi.png "Hi")
The goal of this activity is to download the JavaScript code given below onto a @boardname@.
Then USE the program to introduce new students to the @boardname@.
Then use the program to introduce new students to the @boardname@.
Students will not do the coding this time. They will be the users who get familiar with the board.
## How to play
@ -95,6 +95,8 @@ Thanks for playing with Karel the LED!
Copy this code into the JavaScript editor and then download it to the board.
**Note:** For this project you need to manually copy the code and insert it into the JavaScript view of the editor.
```typescript
/**
* Karel the LED

View File

@ -98,6 +98,8 @@ input.onButtonPressed(Button.B, () => {
Now you just need to program your own @boardname@ and practice the trick a few times before performing for your friends. Try asking your friends to click the buttons after you have switched the labels and the trick won't work for them because they don't have a hidden magnet in their hand!
Remember, that as we are using @boardname@'s compass, it will need to be [calibrated](https://support.microbit.org/support/solutions/articles/19000008874-calibrating-the-micro-bit-compass-what-does-it-mean-when-the-micro-bit-says-draw-a-circle-or-tilt) each time we flash the program or run it for the first time.
## About the authors
This project was contributed by Brian and Jasmine Norman, aka [@MicroMonstersUK](https://twitter.com/MicroMonstersUK). You can checkout their [MicroMonsters](https://www.youtube.com/channel/UCK2DviDexh_Er2QYZerZyZQ) tutorials channel on YouTube for more projects.
This project was contributed by Brian and Jasmine Norman, aka [@MicroMonstersUK](https://twitter.com/MicroMonstersUK). You can checkout their [MicroMonsters](https://www.youtube.com/channel/UCK2DviDexh_Er2QYZerZyZQ) tutorials channel on YouTube for more projects.

View File

@ -20,7 +20,7 @@ This is a follow up of the **[soil moisture project](/projects/soil-moisture)**.
* 1 @boardname@ with battery pack and batteries
* 2 long nails or silver
* 2 crocodile clips
* 1 micro servo + 3 female-to-croc clips
* 1 micro servo + 3 male-to-croc clips
* 1 ice cream wooden stick
* 2 elastics
* 1 clear tape roll