pxt-microbit 7.1.23 → 7.1.28

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 (36) hide show
  1. package/built/block-tests.js +1 -1
  2. package/built/common-sim.d.ts +26 -2
  3. package/built/common-sim.js +358 -4
  4. package/built/hexcache/{f254b35661aec9c97b86444b02fe17ed0fa65ad03b8ab65dd2ef6c66e74259fe.hex → 26bf3d28c9e047cf23ab30fdc58a2b08ffdff09a1d937217a0b9f0c6865e26f8.hex} +79 -79
  5. package/built/hexcache/{c5a9e0a8ad381a258b95357cf7aa140734c79ef987eb172003e8571d37bb6fbf.hex → 3ad12e3ab4375ab9cdc8878550a39c51482d2739970dc1ad4a9267c62badb7bd.hex} +82 -82
  6. package/built/hexcache/{f9d55de9d2511f3a9625351415d9c95513d63a475e4a4c9f23db905d22e80af0.hex → 4e84d0c0d59051e8b1bf3f71205b179a9ae1b51928292f2aea36016ecc49d896.hex} +79 -79
  7. package/built/hexcache/{55639532a88cab7365a995dd19138a4085b2435262f5783f2cc2204a1e210a6c.hex → 846508e18afd4c8d586be2b6e3ebd204e658a9531deed5cd3f0dbfaaeeeb8285.hex} +82 -82
  8. package/built/sim.d.ts +13 -0
  9. package/built/sim.js +172 -71
  10. package/built/target-strings.json +1 -1
  11. package/built/target.js +1 -1
  12. package/built/target.json +1 -1
  13. package/built/targetlight.js +1 -0
  14. package/built/targetlight.json +1 -1
  15. package/built/theme.json +1 -1
  16. package/built/web/blockly.css +1 -1
  17. package/built/web/react-common-authcode.css +1 -1
  18. package/built/web/react-common-multiplayer.css +1 -1
  19. package/built/web/react-common-skillmap.css +1 -1
  20. package/built/web/rtlblockly.css +1 -1
  21. package/built/web/rtlreact-common-authcode.css +1 -1
  22. package/built/web/rtlreact-common-multiplayer.css +1 -1
  23. package/built/web/rtlreact-common-skillmap.css +1 -1
  24. package/built/web/rtlsemantic.css +19 -19
  25. package/built/web/semantic.css +19 -19
  26. package/docs/courses.md +2 -2
  27. package/docs/extensions/extension-gallery.md +16 -0
  28. package/docs/microcode.md +4 -9
  29. package/docs/projects/SUMMARY.md +3 -4
  30. package/docs/projects/duct-tape-watch.md +0 -4
  31. package/docs/projects/spy/micro-chat.md +2 -2
  32. package/docs/reference/radio/on-received-message.md +25 -0
  33. package/docs/reference/radio/send-message.md +25 -0
  34. package/package.json +17 -3
  35. package/pxtarget.json +4 -1
  36. package/targetconfig.json +78 -1
package/docs/courses.md CHANGED
@@ -116,8 +116,8 @@ Tutorials, lessons, and mini-courses about programming and computing.
116
116
  "imageUrl":"/static/courses/logic-lab.png"
117
117
  }, {
118
118
  "name": "CodeJoy Remote Robotics",
119
- "description": "Interactive remote robotics and& coding classes for students and educators",
120
- "url": "https://www.codejoyeducation.com",
119
+ "description": "Interactive remote robotics and coding classes for students and educators",
120
+ "url": "https://www.codejoy.org",
121
121
  "imageUrl": "/static/courses/codejoy.png"
122
122
  }]
123
123
  ```
@@ -380,6 +380,10 @@ Many extensions are available to work with interface kits, add-on hardware, or o
380
380
 
381
381
  ```codecard
382
382
  [{
383
+ "name": "BP Lab micro:bit Kit",
384
+ "url": "/pkg/team-bp/pxt-bplab",
385
+ "cardType": "package"
386
+ }, {
383
387
  "name": "Smarthon Smart City",
384
388
  "url": "/pkg/SMARTHON/pxt-smartcity",
385
389
  "cardType": "package"
@@ -454,6 +458,10 @@ Many extensions are available to work with interface kits, add-on hardware, or o
454
458
 
455
459
  ```codecard
456
460
  [{
461
+ "name": "ZHAW Luma Matrix",
462
+ "url":"/pkg/InES-HPMM/pxt-luma-matrix",
463
+ "cardType": "package"
464
+ }, {
457
465
  "name": "Kitronik Lamp:Bit",
458
466
  "url":"/pkg/KitronikLtd/pxt-kitronik-lampbit",
459
467
  "cardType": "package"
@@ -521,6 +529,10 @@ Many extensions are available to work with interface kits, add-on hardware, or o
521
529
 
522
530
  ```codecard
523
531
  [{
532
+ "name": "DFRobot Creative Robotics Kit",
533
+ "url":"/pkg/DFRobot/pxt-DFRobot_creative-robotics-kit",
534
+ "cardType": "package"
535
+ }, {
524
536
  "name": "Elecfreaks XGO Rider",
525
537
  "url":"/pkg/elecfreaks/XGO-Rider",
526
538
  "cardType": "package"
@@ -1063,6 +1075,10 @@ Many extensions are available to work with interface kits, add-on hardware, or o
1063
1075
  "name": "micro:bit power saving",
1064
1076
  "url":"/pkg/microbit-foundation/pxt-microbit-v2-power",
1065
1077
  "cardType": "package"
1078
+ }, {
1079
+ "name": "Sound Level in decibels (dB)",
1080
+ "url":"/pkg/microbit-foundation/pxt-sound-level-db",
1081
+ "cardType": "package"
1066
1082
  }, {
1067
1083
  "name": "DS3231 Real Time Clock",
1068
1084
  "url":"/pkg/AlexandreFrolov/DS3231",
package/docs/microcode.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MicroCode
2
2
 
3
- [MicroCode](https://aka.ms/m9) is an experimental tile-based language and editor for young coders and coders with disabilities on the BBC micro:bit V2 (V1 not supported), inspired by Kodu Game Lab.
3
+ [MicroCode](https://microbit-apps.github.io/microcode-classic/docs/manual) is an experimental tile-based language and editor for young coders and coders with disabilities on the BBC micro:bit V2 (V1 not supported), inspired by Kodu Game Lab.
4
4
 
5
5
  ## Getting started
6
6
 
@@ -8,19 +8,14 @@
8
8
  [{
9
9
  "name": "Getting Started",
10
10
  "description": "MicroCode is an experimental tile-based language and editor for young coders and coders with disabilities on the BBC micro:bit V2 (V1 not supported), inspired by Kodu Game Lab.",
11
- "url":"https://microsoft.github.io/microcode",
11
+ "url":"https://microbit-apps.github.io/microcode-classic/docs/manual",
12
12
  "imageUrl": "/static/microcode/home.png"
13
13
  },
14
- {
15
- "name": "User Guide",
16
- "description": "Learn how to use MicroCode editor and language.",
17
- "url": "https://microsoft.github.io/microcode/docs/manual",
18
- "imageUrl": "/static/microcode/userguide.png"
19
- },
14
+
20
15
  {
21
16
  "name": "Samples",
22
17
  "description": "Annotated MicroCode programs with screen animations, sounds, radio messages and more.",
23
- "url": "https://microsoft.github.io/microcode/docs/samples",
18
+ "url": "https://microbit-apps.github.io/microcode-classic/docs/samples",
24
19
  "imageUrl": "/static/microcode/samples.png"
25
20
  }
26
21
  ]
@@ -140,7 +140,7 @@
140
140
  * [Networking with the micro:bit](https://www.digitaltechnologieshub.edu.au/search/networking-with-the-micro-bit/)
141
141
  * [SparkFun Videos](https://youtu.be/kaNtg1HGXbY?list=PLBcrWxTa5CS0mWJrytvii8aG5KUqMXvSk)
142
142
  * [Logic Lab](/courses/logic-lab)
143
- * [CodeJoy Remote Robotics](https://www.codejoyeducation.com)
143
+ * [CodeJoy Remote Robotics](https://www.codejoy.org)
144
144
  * [Blocks to JavaScript](/courses/blocks-to-javascript)
145
145
  * [SparkFun Inventor's Kit](https://learn.sparkfun.com/tutorials/sparkfun-inventors-kit-for-microbit-experiment-guide/introduction-to-the-sparkfun-inventors-kit-for-microbit)
146
146
  * [Kitronik Inventor Kit](https://www.kitronik.co.uk/blog/inventors-kit-experiment-1-help)
@@ -156,9 +156,8 @@
156
156
  * [Sound LED](https://microsoft.github.io/jacdac-docs/clients/makecode/projects/sound-led/)
157
157
  * [Magnetic Sound Bender](https://microsoft.github.io/jacdac-docs/clients/makecode/projects/magnetic-sound-bender/)
158
158
  * [MicroCode for the new micro:bit (V2)](/microcode)
159
- * [Getting Started](https://microsoft.github.io/microcode)
160
- * [User Guide](https://microsoft.github.io/microcode/docs/manual)
161
- * [Samples](https://microsoft.github.io/microcode/docs/samples)
159
+ * [Getting Started](https://microbit-apps.github.io/microcode-classic/docs/manual)
160
+ * [Samples](https://microbit-apps.github.io/microcode-classic/docs/samples)
162
161
  * [Behind the MakeCode Hardware](/behind-the-makecode-hardware)
163
162
  * [LEDs](https://youtu.be/qqBmvHD5bCw)
164
163
  * [Buttons](https://youtu.be/t_Qujjd_38o)
@@ -8,10 +8,6 @@
8
8
  * Roll of duct tape (maybe 2 rolls if you want another color)
9
9
  * Velcro
10
10
 
11
- ## Flipgrid
12
-
13
- https://flipgrid.com/30f0429c
14
-
15
11
  ## Steps
16
12
 
17
13
  ### Step 1 - Cut the pieces of tape
@@ -47,7 +47,7 @@ radio.setGroup(1)
47
47
  input.onButtonPressed(Button.A, function() {
48
48
  radio.sendString("Micro Chat!")
49
49
  })
50
- radio.onReceivedString(function (receivedString) {
50
+ radio.onReceivedString(function(receivedString: string) {
51
51
  })
52
52
  ```
53
53
 
@@ -60,7 +60,7 @@ radio.setGroup(1)
60
60
  input.onButtonPressed(Button.A, function() {
61
61
  radio.sendString("Micro Chat!")
62
62
  })
63
- radio.onReceivedString(function (receivedString) {
63
+ radio.onReceivedString(function(receivedString: string) {
64
64
  // @highlight
65
65
  basic.showString(receivedString)
66
66
  })
@@ -0,0 +1,25 @@
1
+ # @extends
2
+
3
+ ## Example #example
4
+
5
+ Send a ``Hello`` message when button ``A`` is pressed, ``Goodbye`` when button ``B`` is pressed. If the messages are received, display either a ``heart`` or a ``scissor`` for the messages.
6
+
7
+ ```blocks
8
+ enum RadioMessage {
9
+ message1 = 49434,
10
+ Hello = 49337,
11
+ Goodbye = 16885
12
+ }
13
+ input.onButtonPressed(Button.A, function () {
14
+ radio.sendMessage(RadioMessage.Hello)
15
+ })
16
+ radio.onReceivedMessage(RadioMessage.Hello, function () {
17
+ basic.showIcon(IconNames.Heart)
18
+ })
19
+ input.onButtonPressed(Button.B, function () {
20
+ radio.sendMessage(RadioMessage.Goodbye)
21
+ })
22
+ radio.onReceivedMessage(RadioMessage.Goodbye, function () {
23
+ basic.showIcon(IconNames.Scissors)
24
+ })
25
+ ```
@@ -0,0 +1,25 @@
1
+ # @extends
2
+
3
+ ## Example #example
4
+
5
+ Send a ``Hello`` message when button ``A`` is pressed, ``Goodbye`` when button ``B`` is pressed. If the messages are received, display either a ``heart`` or a ``scissor`` for the messages.
6
+
7
+ ```blocks
8
+ enum RadioMessage {
9
+ message1 = 49434,
10
+ Hello = 49337,
11
+ Goodbye = 16885
12
+ }
13
+ input.onButtonPressed(Button.A, function () {
14
+ radio.sendMessage(RadioMessage.Hello)
15
+ })
16
+ radio.onReceivedMessage(RadioMessage.Hello, function () {
17
+ basic.showIcon(IconNames.Heart)
18
+ })
19
+ input.onButtonPressed(Button.B, function () {
20
+ radio.sendMessage(RadioMessage.Goodbye)
21
+ })
22
+ radio.onReceivedMessage(RadioMessage.Goodbye, function () {
23
+ basic.showIcon(IconNames.Scissors)
24
+ })
25
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-microbit",
3
- "version": "7.1.23",
3
+ "version": "7.1.28",
4
4
  "description": "micro:bit target for Microsoft MakeCode (PXT)",
5
5
  "keywords": [
6
6
  "JavaScript",
@@ -45,7 +45,21 @@
45
45
  "typescript": "4.8.3"
46
46
  },
47
47
  "dependencies": {
48
- "pxt-common-packages": "12.2.2",
49
- "pxt-core": "11.3.20"
48
+ "pxt-common-packages": "12.3.29",
49
+ "pxt-core": "11.4.16"
50
+ },
51
+ "overrides": {
52
+ "@blockly/field-colour": {
53
+ "blockly": "^12.0.0-beta.4"
54
+ },
55
+ "@blockly/plugin-workspace-search": {
56
+ "blockly": "^12.0.0-beta.4"
57
+ },
58
+ "@blockly/keyboard-navigation": {
59
+ "blockly": "^12.0.0-beta.4"
60
+ }
61
+ },
62
+ "scripts": {
63
+ "postinstall": "node ./scripts/patchBlocklyFieldColour.js"
50
64
  }
51
65
  }
package/pxtarget.json CHANGED
@@ -191,7 +191,7 @@
191
191
  "mbcodal": {
192
192
  "compile": {
193
193
  "flashCodeAlign": 4096,
194
- "flashUsableEnd": 487424,
194
+ "flashUsableEnd": 471040,
195
195
  "flashEnd": 524288
196
196
  },
197
197
  "compileService": {
@@ -495,6 +495,8 @@
495
495
  "functions": "#3455DB",
496
496
  "arrays": "#E65722"
497
497
  },
498
+ "defaultColorTheme": "microbit-light",
499
+ "highContrastColorTheme": "pxt-high-contrast",
498
500
  "blocksCollapsing": true,
499
501
  "highContrast": true,
500
502
  "greenScreen": true,
@@ -513,6 +515,7 @@
513
515
  "es-ES",
514
516
  "fi",
515
517
  "fr",
518
+ "gn",
516
519
  "he",
517
520
  "hu",
518
521
  "is",
package/targetconfig.json CHANGED
@@ -404,6 +404,7 @@
404
404
  "stemhub/pxt-stemhubcity": { "tags": [ "Science" ] },
405
405
  "kittenbot/pxt-powerbrick": { "tags": [ "Science" ] },
406
406
  "microbit-foundation/pxt-microbit-v2-power": { "tags": [ "Software" ] },
407
+ "microbit-foundation/pxt-sound-level-db": { "tags": [ "Software" ] },
407
408
  "kittenbot/pxt-joyfrog": { "tags": [ "Gaming" ] },
408
409
  "kittenbot/pxt-sugar": { "tags": [ "Science" ] },
409
410
  "kittenbot/pxt-koi": { "tags": [ "Science" ] },
@@ -472,6 +473,9 @@
472
473
  "parallaxinc/cyberbot_makecode": { "tags": [ "Robotics" ] },
473
474
  "siyeenove/pxt_mcar": { "tags": [ "Robotics" ] },
474
475
  "elecfreaks/xgo-rider": { "tags": [ "Robotics" ] },
476
+ "dfrobot/pxt-dfrobot_creative-robotics-kit": { "tags": [ "Robotics" ] },
477
+ "ines-hpmm/pxt-luma-matrix": { "tags": [ "Lights and Display" ] },
478
+ "team-bp/pxt-bplab": { "tags": [ "Science" ] },
475
479
  "microsoft/pxt-simx-sample": {
476
480
  "simx": {
477
481
  "sha": "7301f5900879b85127482d79bab48f03c25690a8",
@@ -490,7 +494,80 @@
490
494
  "sha": "0825d56f78528c57af100a96abdfe2162f59945a",
491
495
  "devUrl": "http://localhost:3000"
492
496
  }
493
- }
497
+ },
498
+ "jacdac/pxt-jacdac": {
499
+ "simx": {
500
+ "sha": "1992ffbd37a7e28604e65cc16efa78a827543199",
501
+ "devUrl": "https://jacdac.github.io/pxt-jacdac/"
502
+ }
503
+ },
504
+ "jacdac/pxt-jacdac/accelerometer": {},
505
+ "jacdac/pxt-jacdac/acidity": {},
506
+ "jacdac/pxt-jacdac/air-pressure": {},
507
+ "jacdac/pxt-jacdac/air-quality-index": {},
508
+ "jacdac/pxt-jacdac/arcade-gamepad": {},
509
+ "jacdac/pxt-jacdac/azure-iot-hub-health": {},
510
+ "jacdac/pxt-jacdac/button": {},
511
+ "jacdac/pxt-jacdac/buzzer": {},
512
+ "jacdac/pxt-jacdac/character-screen": {},
513
+ "jacdac/pxt-jacdac/codal-message-bus": {},
514
+ "jacdac/pxt-jacdac/color": {},
515
+ "jacdac/pxt-jacdac/compass": {},
516
+ "jacdac/pxt-jacdac/dc-current-measurement": {},
517
+ "jacdac/pxt-jacdac/dc-voltage-measurement": {},
518
+ "jacdac/pxt-jacdac/distance": {},
519
+ "jacdac/pxt-jacdac/dmx": {},
520
+ "jacdac/pxt-jacdac/dot-matrix": {},
521
+ "jacdac/pxt-jacdac/dual-motors": {},
522
+ "jacdac/pxt-jacdac/e-co2": {},
523
+ "jacdac/pxt-jacdac/flex": {},
524
+ "jacdac/pxt-jacdac/gamepad": {},
525
+ "jacdac/pxt-jacdac/gyroscope": {},
526
+ "jacdac/pxt-jacdac/heart-rate": {},
527
+ "jacdac/pxt-jacdac/hid-joystick": {},
528
+ "jacdac/pxt-jacdac/hid-keyboard": {},
529
+ "jacdac/pxt-jacdac/hid-mouse": {},
530
+ "jacdac/pxt-jacdac/humidity": {},
531
+ "jacdac/pxt-jacdac/illuminance": {},
532
+ "jacdac/pxt-jacdac/led": {},
533
+ "jacdac/pxt-jacdac/led-single": {},
534
+ "jacdac/pxt-jacdac/led-strip": {},
535
+ "jacdac/pxt-jacdac/light-bulb": {},
536
+ "jacdac/pxt-jacdac/light-level": {},
537
+ "jacdac/pxt-jacdac/magnetic-field-level": {},
538
+ "jacdac/pxt-jacdac/magnetometer": {},
539
+ "jacdac/pxt-jacdac/model-runner": {},
540
+ "jacdac/pxt-jacdac/motion": {},
541
+ "jacdac/pxt-jacdac/motor": {},
542
+ "jacdac/pxt-jacdac/multitouch": {},
543
+ "jacdac/pxt-jacdac/potentiometer": {},
544
+ "jacdac/pxt-jacdac/power": {},
545
+ "jacdac/pxt-jacdac/pulse-oximeter": {},
546
+ "jacdac/pxt-jacdac/rain-gauge": {},
547
+ "jacdac/pxt-jacdac/real-time-clock": {},
548
+ "jacdac/pxt-jacdac/reflected-light": {},
549
+ "jacdac/pxt-jacdac/relay": {},
550
+ "jacdac/pxt-jacdac/rng": {},
551
+ "jacdac/pxt-jacdac/rotary-encoder": {},
552
+ "jacdac/pxt-jacdac/sensor-aggregator": {},
553
+ "jacdac/pxt-jacdac/servo": {},
554
+ "jacdac/pxt-jacdac/seven-segment-display": {},
555
+ "jacdac/pxt-jacdac/soil-moisture": {},
556
+ "jacdac/pxt-jacdac/solenoid": {},
557
+ "jacdac/pxt-jacdac/sound-level": {},
558
+ "jacdac/pxt-jacdac/speech-synthesis": {},
559
+ "jacdac/pxt-jacdac/switch": {},
560
+ "jacdac/pxt-jacdac/tcp": {},
561
+ "jacdac/pxt-jacdac/temperature": {},
562
+ "jacdac/pxt-jacdac/traffic-light": {},
563
+ "jacdac/pxt-jacdac/tvoc": {},
564
+ "jacdac/pxt-jacdac/uv-index": {},
565
+ "jacdac/pxt-jacdac/vibration-motor": {},
566
+ "jacdac/pxt-jacdac/water-level": {},
567
+ "jacdac/pxt-jacdac/weight-scale": {},
568
+ "jacdac/pxt-jacdac/wifi": {},
569
+ "jacdac/pxt-jacdac/wind-direction": {},
570
+ "jacdac/pxt-jacdac/wind-speed": {}
494
571
  },
495
572
  "approvedEditorExtensionUrls": [
496
573
  "https://microsoft.github.io/ml4f/",