pxt-microbit 4.1.24 → 4.1.27
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.
- package/built/target.js +29 -28
- package/built/target.json +29 -28
- package/built/targetlight.json +5 -5
- package/built/theme.json +1 -0
- package/built/web/blockly.css +1 -1
- package/built/web/react-common-authcode.css +168 -10
- package/built/web/react-common-skillmap.css +1 -1
- package/built/web/rtlblockly.css +1 -1
- package/built/web/rtlreact-common-skillmap.css +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/docs/reference/input/set-sound-threshold.md +8 -0
- package/docs/reference/input/sound-level.md +10 -2
- package/package.json +3 -3
- package/pxtarget.json +2 -1
- package/targetconfig.json +1 -1
|
@@ -12,6 +12,14 @@ a sound level number as a _threshold_ (just the right amount of sound) to make t
|
|
|
12
12
|
[on sound](/reference/input/on-sound) event happen. To set a threshold, you choose the type of sound
|
|
13
13
|
to detect, `loud` or `quiet`, and then the sound level for that type.
|
|
14
14
|
|
|
15
|
+
### ~ reminder
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
This block requires the [micro:bit V2](/device/v2) hardware. If you use this block with a micro:bit v1 board, you will see the **927** error code on the screen.
|
|
20
|
+
|
|
21
|
+
### ~
|
|
22
|
+
|
|
15
23
|
## Parameters
|
|
16
24
|
|
|
17
25
|
* **sound**: the type of sound to dectect: `loud` or `quiet`.
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
# sound Level
|
|
2
2
|
|
|
3
|
-
Find out what the the level of sound heard by microphone is.
|
|
3
|
+
Find out what the the level of sound heard by the microphone is.
|
|
4
4
|
|
|
5
5
|
```sig
|
|
6
6
|
input.soundLevel()
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
### ~ reminder
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
This block requires the [micro:bit V2](/device/v2) hardware. If you use this block with a micro:bit v1 board, you will see the **927** error code on the screen.
|
|
14
|
+
|
|
15
|
+
### ~
|
|
16
|
+
|
|
9
17
|
## Returns
|
|
10
18
|
|
|
11
19
|
* a ``number`` between `0` (low sound) and `255` (loud sound) which tells how loud the sounds are that the microphone hears.
|
|
@@ -26,7 +34,7 @@ basic.forever(function () {
|
|
|
26
34
|
|
|
27
35
|
## See also
|
|
28
36
|
|
|
29
|
-
[on sound](/reference/input/on-sound), [set sound threshold](/reference/input/sound-
|
|
37
|
+
[on sound](/reference/input/on-sound), [set sound threshold](/reference/input/set-sound-threshold)
|
|
30
38
|
|
|
31
39
|
```package
|
|
32
40
|
microphone
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pxt-microbit",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.27",
|
|
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": "9.5.
|
|
48
|
-
"pxt-core": "7.5.
|
|
47
|
+
"pxt-common-packages": "9.5.6",
|
|
48
|
+
"pxt-core": "7.5.22"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/pxtarget.json
CHANGED
|
@@ -601,7 +601,8 @@
|
|
|
601
601
|
"incompatibleHardwareImage": "/static/download/incompatible.png"
|
|
602
602
|
},
|
|
603
603
|
"winAppDeprImage": "/static/winapp.PNG",
|
|
604
|
-
"showWinAppDeprBanner": false
|
|
604
|
+
"showWinAppDeprBanner": false,
|
|
605
|
+
"legacyTutorial": true
|
|
605
606
|
},
|
|
606
607
|
"queryVariants": {
|
|
607
608
|
"hidemenu": {
|
package/targetconfig.json
CHANGED
|
@@ -1767,7 +1767,7 @@
|
|
|
1767
1767
|
"Imagimaker/pxt-imagimaker": "dv:mbcodal",
|
|
1768
1768
|
"PiSupply/pxt-oled-ssd1306": "dv:mbcodal",
|
|
1769
1769
|
"sparkfun/pxt-gator-particle": "dv:mbcodal",
|
|
1770
|
-
"sparkfun/pxt-gator-microphone": "
|
|
1770
|
+
"sparkfun/pxt-gator-microphone": "min:v1.0.21",
|
|
1771
1771
|
"rebeccaclavier/pxt-bmp280": "dv:mbcodal",
|
|
1772
1772
|
"mu-opensource/pxt-muvision": "min:v1.2.28",
|
|
1773
1773
|
"elecfreaks/pxt-PlanetX": "min:v0.13.1",
|