pxt-microbit 5.1.21 → 5.1.22

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.
@@ -6,7 +6,7 @@ Display a bar graph for a number value.
6
6
  led.plotBarGraph(2, 20);
7
7
  ```
8
8
 
9
- A bar graph is a kind of chart that shows numbers as lines with different lengths.
9
+ A bar graph is a kind of chart that shows numbers as lines with different lengths. The value is plotted in LEDs as a ratio of a **value** to the **high** value you set as a maximum range. So, if there are 25 LEDs on the screen, then plotting `9` for the high value of `50` would display about 5 LEDs on the screen.
10
10
 
11
11
  ## Parameters
12
12
 
@@ -16,13 +16,13 @@ A bar graph is a kind of chart that shows numbers as lines with different length
16
16
  if the temperature is 0 degrees Celsius.
17
17
  * **high**: a [number](/types/number) that is the highest
18
18
  possible number (maximum) that the **value** parameter can be. The lines in the bar graph will reach their highest point when **value** reaches this number. If **high** is `0`, then the largest value recently plotted is used as the maximum.
19
+ * **valueToConsole**: a [boolean](/types/boolean) value that when `true` will also send the **value** to the serial port. A value of `false` will prevent the number in **value** from going to the serial output.
19
20
 
20
21
  ### ~hint
21
22
 
22
23
  #### Serial Output
23
24
 
24
- The ``||led:plot bar graph||`` block also writes the number from **value** to the [serial](/reference/serial) port as a way to help you record
25
- values.
25
+ The ``||led:plot bar graph||`` block will also write the number from **value** to the [serial](/reference/serial) port if you set the **valueToConsole** parameter to `true`. This is a way to help you record the values you've plotted.
26
26
 
27
27
  ### ~
28
28
 
@@ -32,12 +32,12 @@ Show a bar graph of the [acceleration](/reference/input/acceleration)
32
32
  in the `x` direction of the @boardname@.
33
33
  The @boardname@'s `x` direction is from left to right (or right to left).
34
34
  The faster you move the @boardname@ in this direction,
35
- the taller the lines in the bar graph will be. The **high** paramter is `1023` which sets the highest possible value of acceleration to show.
35
+ the taller the lines in the bar graph will be. The **high** paramter is `1023` which sets the highest possible value of acceleration to show. Also, record the acceleration value by sending it to the serial port.
36
36
 
37
37
  ```blocks
38
38
  basic.forever(() => {
39
39
  let a = input.acceleration(Dimension.X);
40
- led.plotBarGraph(a, 1023)
40
+ led.plotBarGraph(a, 1023, true)
41
41
  })
42
42
  ```
43
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-microbit",
3
- "version": "5.1.21",
3
+ "version": "5.1.22",
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.4.8",
48
- "pxt-core": "8.6.27"
48
+ "pxt-core": "8.6.29"
49
49
  }
50
50
  }
package/pxtarget.json CHANGED
@@ -619,16 +619,13 @@
619
619
 
620
620
  "downloadMenuHelpURL" : "/device/usb",
621
621
  "downloadHelpURL" : "/device/usb",
622
- "firmwareHelpURL": "/device/usb/webusb/troubleshoot",
623
622
  "troubleshootWebUSBHelpURL": "/device/usb/webusb/troubleshoot",
624
623
  "incompatibleHardwareHelpURL": "/device/v2",
625
624
 
626
625
  "dragFileImage": "/static/download/transfer.png",
627
- "connectDeviceImage": "/static/download/connect.png",
628
- "selectDeviceImage": "/static/download/pair.png",
629
- "connectionSuccessImage": "/static/download/connected.png",
630
- "checkFirmwareVersionImage": "/static/download/firmware.png",
631
- "checkUSBCableImage": "/static/download/connect.png",
626
+ "connectDeviceImage": "/static/download/connect-microbit.gif",
627
+ "selectDeviceImage": "/static/download/pair-browser.png",
628
+ "connectionSuccessImage": "/static/download/successfully-paired.png",
632
629
  "incompatibleHardwareImage": "/static/download/incompatible.png"
633
630
  },
634
631
  "winAppDeprImage": "/static/winapp.PNG",