pxt-microbit 7.0.37 → 7.0.39

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.
@@ -33,13 +33,13 @@ input.onLogoEvent(TouchButtonEvent.Pressed, function () {
33
33
 
34
34
  ## {Tickle sound}
35
35
 
36
- ► From the ``||music:Music||`` category, get a ``||music:play sound [giggle] until done||`` and add it to the **bottom** of your ``||input:on logo [pressed]||`` container.
36
+ ► From the ``||music:Music||`` category, get a ``||music:play melody [jump up] [in background]||`` and add it to the **bottom** of your ``||input:on logo [pressed]||`` container. Change the playback mode to ``||music:[until done]||``.
37
37
 
38
38
  ```blocks
39
39
  input.onLogoEvent(TouchButtonEvent.Pressed, function () {
40
40
  basic.showIcon(IconNames.Happy)
41
41
  //@highlight
42
- soundExpression.giggle.playUntilDone()
42
+ music.play(music.builtInPlayableMelody(Melodies.JumpUp), music.PlaybackMode.UntilDone)
43
43
  })
44
44
  ```
45
45
 
@@ -60,14 +60,14 @@ input.onGesture(Gesture.Shake, function () {
60
60
 
61
61
  ## {Dizzy sound}
62
62
 
63
- ► From the ``||music:Music||`` category, find the ``||music:play sound [giggle] until done||`` block and add it to the **bottom** of your ``||input:on [shake]||`` container.
64
- ► Click on the **dropdown** and set it so Cyrus plays a ``||music:sad||`` sound until done.
63
+ ► From the ``||music:Music||`` category, find the ``||music:play melody [dadadum] [in background]||`` block and add it to the **bottom** of your ``||input:on [shake]||`` container. Change the playback mode to ``||music:[until done]||``.
64
+ ► Click on the **dropdown** and set it so Cyrus plays a sad sound until done.
65
65
 
66
66
  ```blocks
67
67
  input.onGesture(Gesture.Shake, function () {
68
68
  basic.showIcon(IconNames.Sad)
69
69
  //@highlight
70
- soundExpression.sad.playUntilDone()
70
+ music.play(music.builtInPlayableMelody(Melodies.Wawawawaa), music.PlaybackMode.UntilDone)
71
71
  })
72
72
  ```
73
73
 
@@ -81,13 +81,13 @@ Let's ensure that Cyrus will always go back to sleep after being shaken or tickl
81
81
  ```blocks
82
82
  input.onGesture(Gesture.Shake, function () {
83
83
  basic.showIcon(IconNames.Sad)
84
- soundExpression.sad.playUntilDone()
84
+ music.play(music.builtInPlayableMelody(Melodies.Wawawawaa), music.PlaybackMode.UntilDone)
85
85
  //@highlight
86
86
  basic.showIcon(IconNames.Asleep)
87
87
  })
88
88
  input.onLogoEvent(TouchButtonEvent.Pressed, function () {
89
89
  basic.showIcon(IconNames.Happy)
90
- soundExpression.giggle.playUntilDone()
90
+ music.play(music.builtInPlayableMelody(Melodies.JumpUp), music.PlaybackMode.UntilDone)
91
91
  })
92
92
  basic.showIcon(IconNames.Asleep)
93
93
  ```
@@ -99,12 +99,12 @@ basic.showIcon(IconNames.Asleep)
99
99
  ```blocks
100
100
  input.onGesture(Gesture.Shake, function () {
101
101
  basic.showIcon(IconNames.Sad)
102
- soundExpression.sad.playUntilDone()
102
+ music.play(music.builtInPlayableMelody(Melodies.Wawawawaa), music.PlaybackMode.UntilDone)
103
103
  basic.showIcon(IconNames.Asleep)
104
104
  })
105
105
  input.onLogoEvent(TouchButtonEvent.Pressed, function () {
106
106
  basic.showIcon(IconNames.Happy)
107
- soundExpression.giggle.playUntilDone()
107
+ music.play(music.builtInPlayableMelody(Melodies.JumpUp), music.PlaybackMode.UntilDone)
108
108
  //@highlight
109
109
  basic.showIcon(IconNames.Asleep)
110
110
  })
@@ -124,12 +124,12 @@ If you have a new @boardname@ (the one with the **shiny gold** logo at the top),
124
124
  ```blocks
125
125
  input.onGesture(Gesture.Shake, function () {
126
126
  basic.showIcon(IconNames.Sad)
127
- soundExpression.sad.playUntilDone()
127
+ music.play(music.builtInPlayableMelody(Melodies.Wawawawaa), music.PlaybackMode.UntilDone)
128
128
  basic.showIcon(IconNames.Asleep)
129
129
  })
130
130
  input.onLogoEvent(TouchButtonEvent.Pressed, function () {
131
131
  basic.showIcon(IconNames.Happy)
132
- soundExpression.giggle.playUntilDone()
132
+ music.play(music.builtInPlayableMelody(Melodies.JumpUp), music.PlaybackMode.UntilDone)
133
133
  basic.showIcon(IconNames.Asleep)
134
134
  })
135
135
  basic.showIcon(IconNames.Asleep)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-microbit",
3
- "version": "7.0.37",
3
+ "version": "7.0.39",
4
4
  "description": "micro:bit target for Microsoft MakeCode (PXT)",
5
5
  "keywords": [
6
6
  "JavaScript",
@@ -46,6 +46,6 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "pxt-common-packages": "12.0.4",
49
- "pxt-core": "10.2.33"
49
+ "pxt-core": "10.2.35"
50
50
  }
51
51
  }
package/pxtarget.json CHANGED
@@ -581,6 +581,7 @@
581
581
 
582
582
  "dragFileImage": "/static/download/transfer.png",
583
583
  "connectDeviceImage": "/static/download/connect-microbit.gif",
584
+ "disconnectDeviceImage": "/static/download/device-forgotten.gif",
584
585
  "selectDeviceImage": "/static/download/selecting-microbit.gif",
585
586
  "connectionSuccessImage": "/static/download/successfully-paired.png",
586
587
  "incompatibleHardwareImage": "/static/download/incompatible.png",