pxt-microbit 5.1.3 → 5.1.5

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.
@@ -493,6 +493,10 @@ Check out [the accessories pages on microbit.org](https://microbit.org/buy/acces
493
493
 
494
494
  ```codecard
495
495
  [{
496
+ "name": "Cytron MOTION:BIT",
497
+ "url":"/pkg/CytronTechnologies/pxt-motionbit",
498
+ "cardType": "package"
499
+ }, {
496
500
  "name": "MAKE&LEARN Didacbot",
497
501
  "url":"/pkg/MakeAndLearn/pxt-didacbot",
498
502
  "cardType": "package"
@@ -814,6 +818,10 @@ Check out [the accessories pages on microbit.org](https://microbit.org/buy/acces
814
818
  "name": "Cytron Rekabit",
815
819
  "url":"/pkg/CytronTechnologies/pxt-rekabit",
816
820
  "cardType": "package"
821
+ }, {
822
+ "name": "Cytron Rekabit RBT Project Kit",
823
+ "url":"/pkg/CytronTechnologies/pxt-rekabit-rbt-project-kit",
824
+ "cardType": "package"
817
825
  }, {
818
826
  "name": "Imagimaker Magisheild",
819
827
  "url":"/pkg/Imagimaker/pxt-imagimaker",
@@ -60,7 +60,7 @@ input.onButtonPressed(Button.A, function () {
60
60
 
61
61
  ## Step 5
62
62
 
63
- Inside the ``||loops:while||`` loop, add code to ``||variables:decrease||`` the timer ``||basic:every second||``.
63
+ Inside the ``||loops:while||`` loop, add code to ``||variables:decrease||`` the timer ``||loops:every second||``.
64
64
 
65
65
  ```blocks
66
66
  let timer = 0
@@ -12,12 +12,12 @@ Two gates are connected to the @boardname@ so it can detect a car passing throug
12
12
 
13
13
  ![](/static/mb/projects/timing-gates/sketchgates.jpg "Sketch of the gates")
14
14
 
15
- As the car passes through the gate ``0``, it sends an event to the @boardname@ through the [``||pins:on pin pressed||``](/reference/input/on-pin-pressed) block.
15
+ As the car passes through the gate ``0``, it sends an event to the @boardname@ through the [``||input:on pin pressed||``](/reference/input/on-pin-pressed) block.
16
16
  The @boardname@ records the time in a variable ``t0``.
17
17
 
18
18
  ![](/static/mb/projects/timing-gates/sketchgate1.jpg "Sketch first gate")
19
19
 
20
- As the car passes through the gate ``1``, it sends an event to the @boardname@ through the [``||pins:on pin pressed||``](/reference/input/on-pin-pressed) block.
20
+ As the car passes through the gate ``1``, it sends an event to the @boardname@ through the [``||input:on pin pressed||``](/reference/input/on-pin-pressed) block.
21
21
  The @boardname@ records the time in a variable ``t1``.
22
22
 
23
23
  ![](/static/mb/projects/timing-gates/sketchgate2.jpg "Sketch first gate")
@@ -87,7 +87,7 @@ The gate is ready to use! Your circuit should look like the picture below:
87
87
 
88
88
  ## Detecting the car with code
89
89
 
90
- The @boardname@ provides an event [``||pins:on pin pressed||``](/reference/input/on-pin-pressed)
90
+ The @boardname@ provides an event [``||input:on pin pressed||``](/reference/input/on-pin-pressed)
91
91
  that is raised when a circuit between ``GND`` and a pin is detected. The circuit conductor could be a wire or even your body!
92
92
  We will attach a foil to the bottom of the car. When it passes over the gate, it connects both foil strips, closes the circuit and triggers the event.
93
93
 
@@ -145,7 +145,7 @@ Connect the crocodile plugs to the ``GND`` and ``P1`` pins on the @boardname@.
145
145
 
146
146
  ## Detecting the second gate
147
147
 
148
- Since the second gate is connected to pin ``P1``, we add a second [``||pins:on pin pressed||``](/reference/input/on-pin-pressed) event
148
+ Since the second gate is connected to pin ``P1``, we add a second [``||input:on pin pressed||``](/reference/input/on-pin-pressed) event
149
149
  that display 2 columns of LEDs.
150
150
 
151
151
  ```blocks
@@ -47,7 +47,7 @@ Did you notice the pattern of repeated blocks needed to draw a square? Try using
47
47
 
48
48
  ```blocks
49
49
  input.onButtonPressed(Button.A, function() {
50
- for(let index = 0; index <= 4; index++) {
50
+ for(let index = 0; index <= 3; index++) {
51
51
  turtle.forward(1)
52
52
  turtle.turnRight()
53
53
  }
@@ -61,7 +61,7 @@ The turtle holds a **pen** that can turn on LEDs. If you add the ``||turtle:pen|
61
61
  ```blocks
62
62
  input.onButtonPressed(Button.A, function() {
63
63
  turtle.pen(TurtlePenMode.Down)
64
- for(let index = 0; index <= 4; index++) {
64
+ for(let index = 0; index <= 3; index++) {
65
65
  turtle.forward(1)
66
66
  turtle.turnRight()
67
67
  }
@@ -73,7 +73,7 @@ Ok, now we'll get the timer going and show how many seconds are left. This will
73
73
  1. Get an ``||input:on shake||`` block and place it in the workspace.
74
74
  2. Pull out a ``||loops:while||`` from **Loops** and put it in the ``||input:on shake||``. Replace the `true` condition with the ``||logic:0 < 0||`` conditon from **Logic**. Make the `<` go to `>`. Change the `0` on the left to the `seconds` variable.
75
75
  3. Take out another ``||basic:show number||`` and put it inside the ``||loops:while||``. Change the `0` to the `seconds` variable. Put a ``||basic:pause||`` under that and set the time to `1000` milliseconds. This means our timer will count down by **1000** milliseconds, which is actually one second, each time through the loop.
76
- 4. To change the number of seconds left, get a ``||variables:change by||`` and place it below the ``||loops:pause||``. Find the ``||math:0 - 0||`` block in **Math** and put it in the ``||variables:change by||``. Set the `0` on the right of the minus to be a `1`.
76
+ 4. To change the number of seconds left, get a ``||variables:change by||`` and place it below the ``||basic:pause||``. Find the ``||math:0 - 0||`` block in **Math** and put it in the ``||variables:change by||``. Set the `0` on the right of the minus to be a `1`.
77
77
 
78
78
  ```blocks
79
79
  let seconds = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-microbit",
3
- "version": "5.1.3",
3
+ "version": "5.1.5",
4
4
  "description": "micro:bit target for Microsoft MakeCode (PXT)",
5
5
  "keywords": [
6
6
  "JavaScript",
@@ -44,7 +44,7 @@
44
44
  "typescript": "4.2.3"
45
45
  },
46
46
  "dependencies": {
47
- "pxt-common-packages": "10.0.1",
48
- "pxt-core": "8.6.10"
47
+ "pxt-common-packages": "10.4.5",
48
+ "pxt-core": "8.6.12"
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
  ],
@@ -396,6 +397,7 @@
396
397
  "bluetoothPartialFlashing",
397
398
  "simScreenshot",
398
399
  "simGif",
400
+ "identity",
399
401
  "blocksErrorList"
400
402
  ],
401
403
  "bluetoothUartFilters": [
@@ -622,6 +624,35 @@
622
624
  "appTheme": {
623
625
  "disableBlobObjectDownload": true
624
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
+ }
625
656
  }
626
657
  },
627
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": {},
@@ -558,7 +560,7 @@
558
560
  "elecfreaks/pxt-wukong": { "tags": [ "Science" ] },
559
561
  "sparkfun/pxt-gator-particle": {
560
562
  "tags": [ "Science" ],
561
- "upgrades": [ "dv:mbcodal" ]
563
+ "upgrades": [ "min:v1.1.6" ]
562
564
  },
563
565
  "sparkfun/pxt-gator-soil": { "tags": [ "Science" ] },
564
566
  "sparkfun/pxt-gator-microphone": {
@@ -775,7 +777,9 @@
775
777
  "sparkfun/pxt-gator-uv": { "tags": [ "Science" ] },
776
778
  "dfrobot/pxt-dfrobot_bosonkit": { "tags": [ "Science" ] },
777
779
  "resolute-support/pxt-apprentice_car": { "tags": [ "Robotics" ] },
778
- "makeandlearn/pxt-didacbot": { "tags": [ "Robotics" ] }
780
+ "makeandlearn/pxt-didacbot": { "tags": [ "Robotics" ] },
781
+ "cytrontechnologies/pxt-rekabit-rbt-project-kit": { "tags": [ "Science" ] },
782
+ "cytrontechnologies/pxt-motionbit": { "tags": [ "Robotics" ] }
779
783
  },
780
784
  "upgrades": {
781
785
  "tinkertanker/pxt-iot-environment-kit": "min:v4.2.1",