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:
@ -1,6 +1,6 @@
|
||||
# Show String
|
||||
|
||||
Show a sting on the [LED screen](/device/screen). It will slide left if it is bigger than the screen.
|
||||
Show a string on the [LED screen](/device/screen). It will scroll to left if it's bigger than the screen.
|
||||
|
||||
```sig
|
||||
basic.showString("Hello!")
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Avertise UID Buffer
|
||||
# Advertise UID Buffer
|
||||
|
||||
Advertises a UID via the Eddystone protocol over Bluetooth.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Avertise UID
|
||||
# Advertise UID
|
||||
|
||||
Advertises a UID via the Eddystone protocol over Bluetooth.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Avertise Url
|
||||
# Advertise Url
|
||||
|
||||
Advertises a URL via the Eddystone protocol over Bluetooth.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# On Signal Strength Changed
|
||||
# On Notified
|
||||
|
||||
Register code to run when the signal strength of the paired device changes.
|
||||
|
||||
@ -8,8 +8,6 @@ Register code to run when the signal strength of the paired device changes.
|
||||
|
||||
## ~
|
||||
|
||||
|
||||
|
||||
```sig
|
||||
devices.onNotified(MesDeviceInfo.IncomingCall, () => {})
|
||||
```
|
||||
|
@ -21,47 +21,47 @@ devices.tellCameraTo(MesCameraEvent.TakePhoto)
|
||||
|
||||
To tell the connected device to take a picture:
|
||||
|
||||
```blocks
|
||||
devices.tellCameraTo(MesCameraEvent.TakePhoto)
|
||||
```
|
||||
|
||||
To tell the connected device to start recording a video:
|
||||
|
||||
```blocks
|
||||
devices.tellCameraTo(MesCameraEvent.StartVideoCapture)
|
||||
```
|
||||
|
||||
To tell the connected device to start recording a video
|
||||
To tell the connected device to stop recording a video:
|
||||
|
||||
```blocks
|
||||
devices.tellCameraTo(MesCameraEvent.StopVideoCapture)
|
||||
```
|
||||
|
||||
To tell the connected device to stop recording a video
|
||||
To tell the connected device to toggle front-rear:
|
||||
|
||||
```blocks
|
||||
devices.tellCameraTo(MesCameraEvent.ToggleFrontRear)
|
||||
```
|
||||
|
||||
To tell the connected device to toggle front-rear
|
||||
To tell the connected device to launch photo mode:
|
||||
|
||||
```blocks
|
||||
devices.tellCameraTo(MesCameraEvent.LaunchPhotoMode)
|
||||
```
|
||||
|
||||
To tell the connected device to launch photo mode
|
||||
|
||||
```blocks
|
||||
devices.tellCameraTo(MesCameraEvent.LaunchPhotoMode)
|
||||
```
|
||||
|
||||
To tell the connected device to launch video mode
|
||||
To tell the connected device to launch video mode:
|
||||
|
||||
```blocks
|
||||
devices.tellCameraTo(MesCameraEvent.LaunchVideoMode)
|
||||
```
|
||||
|
||||
To tell the connected device to stop photo mode
|
||||
To tell the connected device to stop photo mode:
|
||||
|
||||
```blocks
|
||||
devices.tellCameraTo(MesCameraEvent.StopPhotoMode)
|
||||
```
|
||||
|
||||
To tell the connected device to stop video mode
|
||||
To tell the connected device to stop video mode:
|
||||
|
||||
```blocks
|
||||
devices.tellCameraTo(MesCameraEvent.StopVideoMode)
|
||||
|
@ -19,7 +19,7 @@ check how the @boardname@ is moving.
|
||||
|
||||
## Returns
|
||||
|
||||
* a [number](/types/number) that means how much the microbit is tilted in the direction you say, from `-180` to `180` degrees
|
||||
* a [number](/types/number) that means how much the microbit is tilted in the direction you say; for `Rotation.Pitch` from `-90` to `90` degrees and for `Rotation.Roll` from `-180` to `180` degrees.
|
||||
|
||||
## Example: @boardname@ leveler
|
||||
|
||||
|
Reference in New Issue
Block a user