pxt-microbit 5.1.2 → 5.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/built/editor.js +11 -0
  2. package/built/sim-strings.json +1 -17
  3. package/built/sim.js +1 -1
  4. package/built/target-strings.json +1 -57
  5. package/built/target.js +1 -44155
  6. package/built/target.json +1 -44155
  7. package/built/targetlight.json +1 -408
  8. package/built/theme.json +1 -2311
  9. package/built/web/blockly.css +1 -1
  10. package/built/web/react-common-authcode.css +4 -6777
  11. package/built/web/react-common-multiplayer.css +13 -0
  12. package/built/web/react-common-skillmap.css +1 -1
  13. package/built/web/rtlblockly.css +1 -1
  14. package/built/web/rtlreact-common-authcode.css +13 -0
  15. package/built/web/rtlreact-common-multiplayer.css +13 -0
  16. package/built/web/rtlreact-common-skillmap.css +1 -1
  17. package/built/web/rtlsemantic.css +2 -2
  18. package/built/web/semantic.css +2 -2
  19. package/docs/device/v2.md +1 -1
  20. package/docs/extensions.md +40 -0
  21. package/docs/microcode.md +27 -0
  22. package/docs/projects/SUMMARY.md +6 -0
  23. package/docs/projects/electric-guitar/code.md +42 -0
  24. package/docs/projects/electric-guitar/make.md +40 -0
  25. package/docs/projects/electric-guitar.md +27 -0
  26. package/docs/projects/hot-potato.md +1 -1
  27. package/docs/projects/jonnys-bird.md +110 -0
  28. package/docs/projects/music.md +10 -0
  29. package/docs/projects/red-light-green-light.md +1 -1
  30. package/docs/projects/timing-gates.md +4 -4
  31. package/docs/projects/turtle-square.md +2 -2
  32. package/docs/projects/watch/timer.md +1 -1
  33. package/docs/projects.md +6 -0
  34. package/docs/reference/music/beat.md +1 -7
  35. package/docs/reference/music/change-tempo-by.md +5 -3
  36. package/docs/reference/music/play-tone.md +28 -15
  37. package/docs/reference/music/rest.md +28 -10
  38. package/docs/reference/music/ring-tone.md +7 -6
  39. package/docs/reference/music/set-tempo.md +7 -3
  40. package/docs/translate.md +53 -22
  41. package/docs/windows-app.md +3 -3
  42. package/package.json +2 -2
  43. package/pxtarget.json +34 -4
  44. package/targetconfig.json +16 -3
@@ -1,22 +1,23 @@
1
1
  # Ring Tone
2
2
 
3
- Play a musical tone through pin `P0` with the pitch as high or low as you say.
4
- The tone will keep playing until you tell it not to.
3
+ Play a musical tone on the speaker or at a sound pin of the @boardname@ with the pitch as high or low as you say. The tone will keep playing until you tell it not to.
5
4
 
6
5
  ```sig
7
6
  music.ringTone(440)
8
7
  ```
9
8
 
10
- ## ~ hint
9
+ ### ~hint
11
10
 
12
- **Simulator**: This function only works on the @boardname@ and in some browsers.
11
+ #### Simulator
13
12
 
14
- ## ~
13
+ The ``||music:ring tone||`` block works on the @boardname@ board. It might not work in the simulator on every browser.
14
+
15
+ ### ~
15
16
 
16
17
  ## Parameters
17
18
 
18
19
  * ``frequency`` is a [number](/types/number) that says
19
- how high-pitched or low-pitched the tone is. This
20
+ how high-pitched or low-pitched the tone is. This
20
21
  number is in **Hz** (**Hertz**), which is a measurement of frequency
21
22
  or pitch.
22
23
 
@@ -5,11 +5,15 @@ Makes the tempo (speed of a piece of music) as fast or slow as you say.
5
5
  ```sig
6
6
  music.setTempo(60)
7
7
  ```
8
- ## ~ hint
9
8
 
10
- **Simulator**: This function only works on the @boardname@ and in some browsers.
9
+ ### ~hint
10
+
11
+ #### Simulator
12
+
13
+ ``||music:set tempo||`` works on the @boardname@. It might not work in the simulator on every browser.
14
+
15
+ ### ~
11
16
 
12
- ## ~
13
17
 
14
18
  ## Parameters
15
19
 
package/docs/translate.md CHANGED
@@ -4,24 +4,32 @@
4
4
 
5
5
  ### ~ hint
6
6
 
7
+ #### Help translate
8
+
7
9
  Looking to help translate the site for **[microbit.org](http://microbit.org)**? Try http://translate.microbit.org/ to help the Microbit Foundation!
8
10
 
9
11
  ### ~
10
12
 
11
13
  ## #target-files
12
14
 
13
- The following lists provide a guide to which translation files and folders relate to the **MakeCode for @boardname@** editor. The links here are to the [English](https://crowdin.com/project/kindscript/en#) source files just to show you the location of the files in the folder structure. Of course, you will translate in your selected language instead.
15
+ When you select your language from the [MakeCode](https://crowdin.com/project/makecode) project home page, you'll find all of the localization files for MakeCode shown in a folder tree. The strings to translate for the @boardname@ are found in the files under the **microbit** folder for the current language.
14
16
 
15
- ### Editor
17
+ ![microbit strings files](/static/mb/translate/crowdin-folder.png)
16
18
 
17
- Files related to the editor:
18
- * [strings.json](https://crowdin.com/translate/kindscript/32/en-en) - Strings common and shared by all MakeCode editors
19
+ Localization files are present in two different forms, JSON and markdown. The JSON files (those you see with the **.json** ending in their names) contain localizable strings related to both the editor UI and the text shown on the programming code blocks. All of the markdown files (those with **.md** at the end of their names) are documents for reference, projects, tutorials, help information, etc.
19
20
 
20
- ![strings.json file in Crowdin UI](/static/mb/translate/stringsfile.png)
21
+ The files listed in the following sections provide a guide to how each of the translation files and folders relate to the **MakeCode for @boardname@** editor. The links here are to the [English](https://crowdin.com/project/kindscript/en#) source files just to show you the location of the files in the folder structure. Of course, you will translate in your selected language instead.
22
+
23
+ ### Editor
21
24
 
22
- * [target-strings.json](https://crowdin.com/translate/kindscript/1922/en-en) - Strings custom to the @boardname@ editor interface
25
+ There a a few files that are specific to the MakeCode editor itself. These contain strings for the editor UI and the simulator. They are essential to translate and should be prioritized before the other files.
23
26
 
24
- ![target-strings.json file in Crowdin UI](/static/mb/translate/targetstringsfile.png)
27
+ | File | Description |
28
+ | - | - |
29
+ | [strings.json](https://crowdin.com/translate/kindscript/32/en-en) | Common strings that shared by all MakeCode editors<br><br/>**Note**: This file is located at the MakeCode project's root folder<br/>rather than under **microbit** |
30
+ | [target-strings.json](https://crowdin.com/translate/kindscript/1922/en-en) | Strings custom to the @boardname@ editor interface |
31
+ | [sim-strings.json](https://crowdin.com/translate/makecode/1923/en-en) | Strings for the @boardname@ simulator |
32
+ <br/>
25
33
 
26
34
  This is an example of the editor with it's interface elements localized:
27
35
 
@@ -29,26 +37,49 @@ This is an example of the editor with it's interface elements localized:
29
37
 
30
38
  ### Blocks
31
39
 
32
- * [core-jsdoc-strings.json](https://crowdin.com/translate/kindscript/66/en-en) - Description text for code elements of the [basic](/reference/basic) and core [blocks](/blocks)
33
- * [core-strings.json](https://crowdin.com/translate/kindscript/65/en-en) - Display text for the [basic](/reference/basic) and core [blocks](/reference/blocks)
34
- * [radio-jsdoc-strings.json](https://crowdin.com/translate/kindscript/64/en-en) - Description text for code elements of the [radio](/reference/radio) blocks
35
- * [radio-strings.json](https://crowdin.com/translate/kindscript/63/en-en) - Display text for the [radio](/reference/radio) blocks
36
- * [radio-broadcast-jsdoc-strings.json](https://crowdin.com/translate/kindscript/5032/en-en) - Description text for code elements of the radio broadcast blocks
37
- * [radio-broadcast-strings.json](https://crowdin.com/translate/kindscript/5030/en-en) - Display text for the radio broadcast blocks
38
- * [servo-jsdoc-strings.json](https://crowdin.com/translate/kindscript/5036/en-en) - Description text for code elements of the [servo](/reference/servos) blocks
39
- * [servo-strings.json](https://crowdin.com/translate/kindscript/5034/en-ens) - Display text for the [servo](/reference/servos) blocks
40
- * [bluetooth-jsdoc-strings.json](https://crowdin.com/translate/kindscript/60/en-en) - Description text for code elements of the [bluetooth](/reference/bluetooth) blocks
41
- * [bluetooth-strings.json](https://crowdin.com/translate/kindscript/59/en-en) - Display text for the [bluetooth](/reference/bluetooth) blocks
42
-
43
- ![screenshot of library file in Crowdin UI](/static/mb/translate/libsfiles.png)
44
-
45
- Here are some translated blocks:
40
+ The strings for the programming code blocks all have names in the form of '_name_-strings.json' and '_name_-jsdoc-strings.json'. The _name_ part of the filename often refers to which set of blocks or the extension tht the blocks come from.
41
+
42
+ | File | Description |
43
+ | - | - |
44
+ | [core-jsdoc-strings.json](https://crowdin.com/translate/kindscript/66/en-en) | Description text for code elements of the [basic](/reference/basic) and core [blocks](/blocks)<br/><br/>**Note**: this file contains strings for the fundamental set of coding<br/>blocks and should be prioritized over the other strings files for blocks |
45
+ | [core-strings.json](https://crowdin.com/translate/kindscript/65/en-en) | Display text for the [basic](/reference/basic) and core [blocks](/reference/blocks)<br/><br/>**Note**: this file contains strings for the fundamental set of coding<br/>blocks and should be prioritized over the other strings files for blocks |
46
+ | [radio-jsdoc-strings.json](https://crowdin.com/translate/kindscript/64/en-en) | Description text for code elements of the [radio](/reference/radio) blocks |
47
+ | [radio-strings.json](https://crowdin.com/translate/kindscript/63/en-en) | Display text for the [radio](/reference/radio) blocks |
48
+ | [radio-broadcast-jsdoc-strings.json](https://crowdin.com/translate/kindscript/5032/en-en) | Description text for code elements of the radio broadcast blocks |
49
+ | [radio-broadcast-strings.json](https://crowdin.com/translate/kindscript/5030/en-en) | Display text for the radio broadcast blocks |
50
+ | [servo-jsdoc-strings.json](https://crowdin.com/translate/kindscript/5036/en-en) | Description text for code elements of the [servo](/reference/servos) blocks |
51
+ | [servo-strings.json](https://crowdin.com/translate/kindscript/5034/en-ens) | Display text for the [servo](/reference/servos) blocks |
52
+ | [bluetooth-jsdoc-strings.json](https://crowdin.com/translate/kindscript/60/en-en) | Description text for code elements of the [bluetooth](/reference/bluetooth) blocks
53
+ | [bluetooth-strings.json](https://crowdin.com/translate/kindscript/59/en-en) | Display text for the [bluetooth](/reference/bluetooth) blocks |
54
+ | [devices-jsdoc-strings.json](https://crowdin.com/translate/makecode/62/en-en) | Description text for code elements of the _connected devices_ blocks |
55
+ | [devices-strings.json](https://crowdin.com/translate/makecode/61/en-en) | Display text for the _connected devices_ blocks |
56
+ | [flashlog-jsdoc-strings.json](https://crowdin.com/translate/kindscript/60/en-en) | Description text for code elements of the _flashlog_ blocks |
57
+ | [flashlog-strings.json](https://crowdin.com/translate/kindscript/59/en-en) | Display text for the _flashlog_ blocks |
58
+ | [datalogger-jsdoc-strings.json](https://crowdin.com/translate/kindscript/11254/en-en) | Description text for code elements of the [datalogger](/reference/datalogger) blocks |
59
+ | [datalogger-strings.json](https://crowdin.com/translate/kindscript/11252/en-en) | Display text for the [datalogger](/reference/datalogger) blocks |
60
+ | [jacdac-jsdoc-strings.json](https://crowdin.com/translate/kindscript/7862/en-en) | Description text for code elements of the _jacdac_ blocks
61
+ | [jacdac-strings.json](https://crowdin.com/translate/kindscript/7860/en-en) | Display text for the _jacdac_ blocks |
62
+ | [color-jsdoc-strings.json](https://crowdin.com/translate/kindscript/11836/en-en) | Description text for code elements of the _color_ blocks
63
+ | [color-strings.json](https://crowdin.com/translate/kindscript/11834/en-en) | Display text for the _color_ blocks |
64
+ | [microphone-jsdoc-strings.json](https://crowdin.com/translate/kindscript/10230/en-en) | Description text for code elements of the _microphone_ blocks
65
+ | [microphone-strings.json](https://crowdin.com/translate/kindscript/10228/en-en) | Display text for the _microphone_ blocks |
66
+ | [settings-jsdoc-strings.json](https://crowdin.com/translate/kindscript/10872/en-en) | Description text for code elements of the _settings_ blocks
67
+ | [settings-strings.json](https://crowdin.com/translate/kindscript/10870/en-en) | Display text for the _settings_ blocks |
68
+ <br/>
69
+
70
+ Here are some examples of translated blocks:
46
71
 
47
72
  ![Translated block text](/static/mb/translate/block-text.jpg)
48
73
 
49
74
  ### Document pages
50
75
 
51
- * [docs](https://crowdin.com/translate/kindscript/en#/microbit/docs) - Documentation pages for projects, courses, lessons, and code block reference
76
+ Document pages contain the text for any markdown page available on the MakeCode editor site. These include code block reference, projects, tutorials, how to information, etc.
77
+
78
+ | File | Description |
79
+ | - | - |
80
+ | [docs](https://crowdin.com/translate/kindscript/en#/microbit/docs) | Documentation pages for projects, courses, lessons, and code block reference |
81
+ | [libs](https://crowdin.com/translate/kindscript/en#/microbit/libs) | Documentation pages for code block reference and other information related to <br/> built-in extensions like _servo_ and _datalogger_ |
82
+ <br/>
52
83
 
53
84
  Here's an example of a translated document page for a course lesson:
54
85
 
@@ -1,11 +1,11 @@
1
1
  # Windows App Deprecation
2
2
 
3
- The Windows app is being deprecated by June 2022. Please use your web browser to access the website at https://makecode.microbit.org
3
+ The original MakeCode for micro:bit Windows app has been deprecated. For continued support, please use our new app: https://apps.microsoft.com/store/detail/microsoft-makecode-for-microbit/9NMQDQ2XZKWK
4
4
 
5
5
  ## Moving Projects
6
6
 
7
- If you want to keep the projects you saved with the app and use them again in the MakeCode editor on the web, you will need to transfer them.
7
+ If you want to keep the projects you saved with the old app and use them again in the new app, you will need to transfer them.
8
8
 
9
9
  1. Share the project from the app using the **Share** option.
10
10
  2. Copy the shared project URL that the app gives you.
11
- 3. On the MakeCode website homepage, click on **Import** to open the shared project with the URL you just copied.
11
+ 3. On the new MakeCode app homepage, click on **Import** to open the shared project with the URL you just copied.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-microbit",
3
- "version": "5.1.2",
3
+ "version": "5.1.4",
4
4
  "description": "micro:bit target for Microsoft MakeCode (PXT)",
5
5
  "keywords": [
6
6
  "JavaScript",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "pxt-common-packages": "10.0.1",
48
- "pxt-core": "8.2.6"
48
+ "pxt-core": "8.6.10"
49
49
  }
50
50
  }
package/pxtarget.json CHANGED
@@ -25,6 +25,7 @@
25
25
  "thumbnails": true,
26
26
  "publishing": true,
27
27
  "importing": true,
28
+ "showBadges": false,
28
29
  "preferredPackages": [
29
30
  "Microsoft/pxt-neopixel"
30
31
  ],
@@ -142,7 +143,7 @@
142
143
  "githubCorePackage": "lancaster-university/microbit",
143
144
  "gittag": "v2.2.0-rc6",
144
145
  "serviceId": "microbit",
145
- "dockerImage": "pext/yotta:latest"
146
+ "dockerImage": "pext/yotta:update-yotta3"
146
147
  },
147
148
  "multiVariants": [
148
149
  "mbdal",
@@ -172,7 +173,7 @@
172
173
  "githubCorePackage": "lancaster-university/microbit-v2-samples",
173
174
  "gittag": "v0.2.11",
174
175
  "serviceId": "mbcodal2",
175
- "dockerImage": "pext/yotta:latest",
176
+ "dockerImage": "pext/yotta:update-yotta3",
176
177
  "yottaConfigCompatibility": true
177
178
  }
178
179
  }
@@ -396,6 +397,7 @@
396
397
  "bluetoothPartialFlashing",
397
398
  "simScreenshot",
398
399
  "simGif",
400
+ "identity",
399
401
  "blocksErrorList"
400
402
  ],
401
403
  "bluetoothUartFilters": [
@@ -607,8 +609,7 @@
607
609
  "incompatibleHardwareImage": "/static/download/incompatible.png"
608
610
  },
609
611
  "winAppDeprImage": "/static/winapp.PNG",
610
- "showWinAppDeprBanner": false,
611
- "legacyTutorial": true
612
+ "showWinAppDeprBanner": false
612
613
  },
613
614
  "queryVariants": {
614
615
  "hidemenu": {
@@ -623,6 +624,35 @@
623
624
  "appTheme": {
624
625
  "disableBlobObjectDownload": true
625
626
  }
627
+ },
628
+ "identity=1": {
629
+ "cloud": {
630
+ "cloudProviders": {
631
+ "github": {
632
+ "id": "github",
633
+ "name": "GitHub",
634
+ "icon": "/static/providers/github-mark.png",
635
+ "identity": false,
636
+ "order": 3
637
+ },
638
+ "microsoft": {
639
+ "id": "microsoft",
640
+ "name": "Microsoft",
641
+ "icon": "/static/providers/microsoft-logo.svg",
642
+ "identity": true,
643
+ "redirect": true,
644
+ "order": 1
645
+ },
646
+ "google": {
647
+ "id": "google",
648
+ "name": "Google",
649
+ "icon": "/static/providers/google-logo.svg",
650
+ "identity": true,
651
+ "redirect": true,
652
+ "order": 2
653
+ }
654
+ }
655
+ }
626
656
  }
627
657
  },
628
658
  "uploadDocs": true
package/targetconfig.json CHANGED
@@ -355,7 +355,9 @@
355
355
  "tags": [ "Science" ],
356
356
  "upgrades": [ "dv:mbcodal" ]
357
357
  },
358
- "microsoft/pxt-bluetooth-midi": { },
358
+ "microsoft/pxt-bluetooth-midi": {
359
+ "upgrades": [ "dv:mbcodal" ]
360
+ },
359
361
  "microsoft/pxt-max6675": {},
360
362
  "microsoft/pxt-midi": {},
361
363
  "microsoft/pxt-radio-blockchain": {},
@@ -435,7 +437,7 @@
435
437
  "sparkfun/pxt-weather-bit": { "tags": [ "Science" ] },
436
438
  "sparkfun/pxt-gator-environment": {
437
439
  "tags": [ "Science" ],
438
- "upgrades": [ "dv:mbcodal" ]
440
+ "upgrades": [ "min:v1.1.2" ]
439
441
  },
440
442
  "minodekit/pxt-minode": {
441
443
  "tags": [ "Science" ],
@@ -766,8 +768,18 @@
766
768
  "dfrobot/pxt-dfrobot_environment_science": {},
767
769
  "ekkai/aicococam": {},
768
770
  "elecfreaks/pxt-xgo": {},
771
+ "joy-it/pxt-rfid-mfrc522": { "tags": [ "Science" ] },
769
772
  "dfrobot/pxt-dfrobot_iot_cloud_kit": { "tags": [ "Networking" ] },
770
- "plenprojectcompany/pxt-plenbit_full": { "tags": [ "Robotics" ] }
773
+ "plenprojectcompany/pxt-plenbit_full": { "tags": [ "Robotics" ] },
774
+ "bsiever/microbit-pxt-clicks": { "tags": [ "Software" ] },
775
+ "joy-it/pxt-ads1115": { "tags": [ "Science" ] },
776
+ "bsiever/microbit-pxt-rotate": { "tags": [ "Software" ] },
777
+ "sparkfun/pxt-gator-uv": { "tags": [ "Science" ] },
778
+ "dfrobot/pxt-dfrobot_bosonkit": { "tags": [ "Science" ] },
779
+ "resolute-support/pxt-apprentice_car": { "tags": [ "Robotics" ] },
780
+ "makeandlearn/pxt-didacbot": { "tags": [ "Robotics" ] },
781
+ "cytrontechnologies/pxt-rekabit-rbt-project-kit": { "tags": [ "Science" ] },
782
+ "cytrontechnologies/pxt-motionbit": { "tags": [ "Robotics" ] }
771
783
  },
772
784
  "upgrades": {
773
785
  "tinkertanker/pxt-iot-environment-kit": "min:v4.2.1",
@@ -830,6 +842,7 @@
830
842
  "Blocks to JavaScript": "courses/blocks-to-javascript",
831
843
  "Courses": "courses",
832
844
  "Jacdac": "jacdac",
845
+ "MicroCode for the new micro:bit (V2)": "microcode",
833
846
  "Behind the MakeCode Hardware": {
834
847
  "url": "behind-the-makecode-hardware",
835
848
  "youTube": true