pxt-common-packages 13.1.4 → 13.1.6
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/common-sim.d.ts +0 -6
- package/built/common-sim.js +0 -23
- package/libs/accelerometer/built/debug/binary.js +8 -8
- package/libs/azureiot/built/debug/binary.js +461 -461
- package/libs/color/built/debug/binary.js +8 -8
- package/libs/color-sensor/built/debug/binary.js +8 -8
- package/libs/controller/built/debug/binary.js +7348 -7348
- package/libs/controller---none/built/debug/binary.js +7328 -7328
- package/libs/core/_locales/core-jsdoc-strings.json +0 -13
- package/libs/core/_locales/core-strings.json +0 -2
- package/libs/core/pxt.json +0 -2
- package/libs/core/shims.d.ts +0 -30
- package/libs/core---samd/_locales/core---samd-jsdoc-strings.json +0 -13
- package/libs/core---samd/_locales/core---samd-strings.json +0 -2
- package/libs/core---samd/built/debug/binary.js +8 -8
- package/libs/core---samd/shims.d.ts +0 -30
- package/libs/datalogger/built/debug/binary.js +63 -63
- package/libs/edge-connector/built/debug/binary.js +8 -8
- package/libs/esp32/built/debug/binary.js +462 -462
- package/libs/game/built/debug/binary.js +7267 -7267
- package/libs/gamepad/built/debug/binary.js +8 -8
- package/libs/keyboard/built/debug/binary.js +8 -8
- package/libs/lcd/built/debug/binary.js +8 -8
- package/libs/light/built/debug/binary.js +8 -8
- package/libs/light/defaultlights.ts +14 -14
- package/libs/light/docs/reference/light/animation.md +33 -0
- package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
- package/libs/lora/built/debug/binary.js +8 -8
- package/libs/matrix-keypad/built/debug/binary.js +8 -8
- package/libs/microphone/built/debug/binary.js +8 -8
- package/libs/mixer/melody.ts +2 -0
- package/libs/mouse/built/debug/binary.js +8 -8
- package/libs/mqtt/built/debug/binary.js +176 -176
- package/libs/music/built/debug/binary.js +8 -8
- package/libs/net/built/debug/binary.js +176 -176
- package/libs/net-game/built/debug/binary.js +8984 -8984
- package/libs/palette/built/debug/binary.js +7266 -7266
- package/libs/pixel/built/debug/binary.js +8 -8
- package/libs/power/built/debug/binary.js +8 -8
- package/libs/proximity/built/debug/binary.js +8 -8
- package/libs/pulse/built/debug/binary.js +8 -8
- package/libs/radio/built/debug/binary.js +8 -8
- package/libs/radio-broadcast/built/debug/binary.js +8 -8
- package/libs/rotary-encoder/built/debug/binary.js +8 -8
- package/libs/rotary-encoder/docs/reference/encoders/on-changed.md +29 -0
- package/libs/rotary-encoder/docs/reference/encoders/position.md +33 -0
- package/libs/rotary-encoder/rotary.cpp +2 -2
- package/libs/rotary-encoder/shims.d.ts +2 -2
- package/libs/screen/built/debug/binary.js +50 -50
- package/libs/servo/built/debug/binary.js +8 -8
- package/libs/sprite-scaling/built/debug/binary.js +7266 -7266
- package/libs/storyboard/built/debug/binary.js +7266 -7266
- package/libs/tests/built/debug/binary.js +15 -15
- package/libs/thermometer/built/debug/binary.js +8 -8
- package/package.json +1 -1
- package/libs/core/keyvaluestorage.cpp +0 -109
- package/libs/core/keyvaluestorage.ts +0 -43
- package/libs/core/sim/keyvaluestorage.ts +0 -15
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P24355(s) {
|
|
60
60
|
let r0 = s.r0, step = s.pc;
|
|
61
61
|
s.pc = -1;
|
|
62
62
|
|
|
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
|
|
|
66
66
|
switch (step) {
|
|
67
67
|
case 0:
|
|
68
68
|
|
|
69
|
-
globals.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___24599 = (undefined);
|
|
70
|
+
globals._pollEventQueue___24612 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P24355.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"gamepad.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P24355.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P24355_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P24355, depth: s.depth + 1,
|
|
82
82
|
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
|
|
83
83
|
} }
|
|
84
84
|
|
|
@@ -87,5 +87,5 @@ function _main___P24467_mk(s) {
|
|
|
87
87
|
|
|
88
88
|
const breakpoints = setupDebugger(1, [])
|
|
89
89
|
|
|
90
|
-
return
|
|
90
|
+
return _main___P24355
|
|
91
91
|
})
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P29623(s) {
|
|
60
60
|
let r0 = s.r0, step = s.pc;
|
|
61
61
|
s.pc = -1;
|
|
62
62
|
|
|
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
|
|
|
66
66
|
switch (step) {
|
|
67
67
|
case 0:
|
|
68
68
|
|
|
69
|
-
globals.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___29867 = (undefined);
|
|
70
|
+
globals._pollEventQueue___29880 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P29623.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"keyboard.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P29623.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P29623_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P29623, depth: s.depth + 1,
|
|
82
82
|
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
|
|
83
83
|
} }
|
|
84
84
|
|
|
@@ -87,5 +87,5 @@ function _main___P29759_mk(s) {
|
|
|
87
87
|
|
|
88
88
|
const breakpoints = setupDebugger(1, [])
|
|
89
89
|
|
|
90
|
-
return
|
|
90
|
+
return _main___P29623
|
|
91
91
|
})
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P49368(s) {
|
|
60
60
|
let r0 = s.r0, step = s.pc;
|
|
61
61
|
s.pc = -1;
|
|
62
62
|
|
|
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
|
|
|
66
66
|
switch (step) {
|
|
67
67
|
case 0:
|
|
68
68
|
|
|
69
|
-
globals.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___49612 = (undefined);
|
|
70
|
+
globals._pollEventQueue___49625 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P49368.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"characterlcd.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P49368.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P49368_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P49368, depth: s.depth + 1,
|
|
82
82
|
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
|
|
83
83
|
} }
|
|
84
84
|
|
|
@@ -87,5 +87,5 @@ function _main___P49528_mk(s) {
|
|
|
87
87
|
|
|
88
88
|
const breakpoints = setupDebugger(1, [])
|
|
89
89
|
|
|
90
|
-
return
|
|
90
|
+
return _main___P49368
|
|
91
91
|
})
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P5332(s) {
|
|
60
60
|
let r0 = s.r0, step = s.pc;
|
|
61
61
|
s.pc = -1;
|
|
62
62
|
|
|
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
|
|
|
66
66
|
switch (step) {
|
|
67
67
|
case 0:
|
|
68
68
|
|
|
69
|
-
globals.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___5576 = (undefined);
|
|
70
|
+
globals._pollEventQueue___5589 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P5332.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"targetoverrides.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P5332.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P5332_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P5332, depth: s.depth + 1,
|
|
82
82
|
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
|
|
83
83
|
} }
|
|
84
84
|
|
|
@@ -87,5 +87,5 @@ function _main___P5356_mk(s) {
|
|
|
87
87
|
|
|
88
88
|
const breakpoints = setupDebugger(1, [])
|
|
89
89
|
|
|
90
|
-
return
|
|
90
|
+
return _main___P5332
|
|
91
91
|
})
|
|
@@ -10,7 +10,7 @@ namespace light {
|
|
|
10
10
|
* @param rgb RGB color of the LED
|
|
11
11
|
*/
|
|
12
12
|
//% blockId="builtin_neopixel_set_strip_color" block="set all pixels to %rgb=colorNumberPicker"
|
|
13
|
-
//% help="light/set-all"
|
|
13
|
+
//% help="light/neopixelstrip/set-all"
|
|
14
14
|
//% weight=79 blockGap=8
|
|
15
15
|
export function setAll(rgb: number) {
|
|
16
16
|
light.pixels.setAll(rgb);
|
|
@@ -32,7 +32,7 @@ namespace light {
|
|
|
32
32
|
*/
|
|
33
33
|
//% blockId="builtin_neopixel_clear" block="clear"
|
|
34
34
|
//% parts="neopixel"
|
|
35
|
-
//% help="light/clear"
|
|
35
|
+
//% help="light/neopixelstrip/clear"
|
|
36
36
|
//% group="More" weight=9 blockGap=8
|
|
37
37
|
export function clear() {
|
|
38
38
|
light.pixels.clear();
|
|
@@ -45,7 +45,7 @@ namespace light {
|
|
|
45
45
|
* @param high maximum value, 0 to autoscale
|
|
46
46
|
*/
|
|
47
47
|
//% blockId=builtin_neopixel_show_bar_graph block="graph %value||up to %high" icon="\uf080"
|
|
48
|
-
//% help=light/graph blockGap=8
|
|
48
|
+
//% help=light/neopixelstrip/graph blockGap=8
|
|
49
49
|
//% weight=10
|
|
50
50
|
export function graph(value: number, high?: number): void {
|
|
51
51
|
light.pixels.graph(value, high);
|
|
@@ -58,7 +58,7 @@ namespace light {
|
|
|
58
58
|
* @param color RGB color of the LED
|
|
59
59
|
*/
|
|
60
60
|
//% blockId="builtin_neopixel_set_pixel_color" block="set pixel color at %pixeloffset|to %rgb=colorNumberPicker"
|
|
61
|
-
//% help="light/set-pixel-color"
|
|
61
|
+
//% help="light/neopixelstrip/set-pixel-color"
|
|
62
62
|
//% group="More" weight=89 blockGap=8
|
|
63
63
|
export function setPixelColor(pixeloffset: number, color: number): void {
|
|
64
64
|
light.pixels.setPixelColor(pixeloffset, color);
|
|
@@ -69,7 +69,7 @@ namespace light {
|
|
|
69
69
|
* @param pixeloffset position of the NeoPixel in the strip
|
|
70
70
|
*/
|
|
71
71
|
//% blockId="builtin_neopixel_pixel_color" block="pixel color at %pixeloffset"
|
|
72
|
-
//% help="light/pixel-color"
|
|
72
|
+
//% help="light/neopixelstrip/pixel-color"
|
|
73
73
|
//% group="More" weight=88
|
|
74
74
|
export function pixelColor(pixeloffset: number): number {
|
|
75
75
|
return light.pixels.pixelColor(pixeloffset);
|
|
@@ -81,7 +81,7 @@ namespace light {
|
|
|
81
81
|
*/
|
|
82
82
|
//% blockId="builtin_neopixel_set_brightness" block="set brightness %brightness"
|
|
83
83
|
//% brightness.min=0 brightness.max=255
|
|
84
|
-
//% help="light/set-brightness"
|
|
84
|
+
//% help="light/neopixelstrip/set-brightness"
|
|
85
85
|
//% weight=2 blockGap=8
|
|
86
86
|
export function setBrightness(brightness: number): void {
|
|
87
87
|
light.pixels.setBrightness(brightness);
|
|
@@ -92,7 +92,7 @@ namespace light {
|
|
|
92
92
|
* @param steps number of steps (lights) to move, eg: 1
|
|
93
93
|
*/
|
|
94
94
|
//% blockId=builtin_neophoton_fd block="photon forward by %steps"
|
|
95
|
-
//% help="light/photon-forward"
|
|
95
|
+
//% help="light/neopixelstrip/photon-forward"
|
|
96
96
|
//% group="Photon" weight=41 blockGap=8
|
|
97
97
|
export function photonForward(steps: number) {
|
|
98
98
|
light.pixels.photonForward(steps);
|
|
@@ -101,7 +101,7 @@ namespace light {
|
|
|
101
101
|
* Switch the direction of the photon pulse.
|
|
102
102
|
*/
|
|
103
103
|
//% blockId=builtin_neophoton_flip block="photon flip"
|
|
104
|
-
//% help="light/photon-flip"
|
|
104
|
+
//% help="light/neopixelstrip/photon-flip"
|
|
105
105
|
//% parts="neopixel"
|
|
106
106
|
//% group="Photon" weight=40 blockGap=8
|
|
107
107
|
export function photonFlip() {
|
|
@@ -114,7 +114,7 @@ namespace light {
|
|
|
114
114
|
* @param index index of the light, if out of bound, the index is wrapped
|
|
115
115
|
*/
|
|
116
116
|
//% blockId=builtin_light_photon_set_position block="photon set position %index"
|
|
117
|
-
//% help="light/set-photon-position"
|
|
117
|
+
//% help="light/neopixelstrip/set-photon-position"
|
|
118
118
|
//% parts="neopixel"
|
|
119
119
|
//% group="Photon" weight=39 blockGap=8
|
|
120
120
|
export function setPhotonPosition(index: number) {
|
|
@@ -126,7 +126,7 @@ namespace light {
|
|
|
126
126
|
* @param hue the color hue of the photon
|
|
127
127
|
*/
|
|
128
128
|
//% blockId=builtin_neophoton_set_pen_hue block="photon set pen hue %hue=colorWheelHsvPicker"
|
|
129
|
-
//% help="light/set-photon-pen-hue"
|
|
129
|
+
//% help="light/neopixelstrip/set-photon-pen-hue"
|
|
130
130
|
//% group="Photon" weight=39 blockGap=8
|
|
131
131
|
export function setPhotonPenHue(hue: number) {
|
|
132
132
|
light.pixels.setPhotonPenHue(hue);
|
|
@@ -137,7 +137,7 @@ namespace light {
|
|
|
137
137
|
* @param mode the desired mode
|
|
138
138
|
*/
|
|
139
139
|
//% blockId=builtin_neophoton_set_photon block="photon %mode"
|
|
140
|
-
//% help="light/set-photon-mode"
|
|
140
|
+
//% help="light/neopixelstrip/set-photon-mode"
|
|
141
141
|
//% group="Photon" weight=38
|
|
142
142
|
export function setPhotonMode(mode: PhotonMode) {
|
|
143
143
|
light.pixels.setPhotonMode(mode);
|
|
@@ -149,7 +149,7 @@ namespace light {
|
|
|
149
149
|
* @param duration the duration to run in milliseconds, eg: 500
|
|
150
150
|
*/
|
|
151
151
|
//% blockId=builtin_neopixel_show_animation block="show animation %animation=light_animation_picker|for %duration=timePicker|ms"
|
|
152
|
-
//% help="light/show-animation" blockGap=8
|
|
152
|
+
//% help="light/neopixelstrip/show-animation" blockGap=8
|
|
153
153
|
//% weight=81
|
|
154
154
|
export function showAnimation(animation: NeoPixelAnimation, duration: number) {
|
|
155
155
|
light.pixels.showAnimation(animation, duration);
|
|
@@ -160,7 +160,7 @@ namespace light {
|
|
|
160
160
|
* @param animation the animation to run, eg: light.rainbowAnimation
|
|
161
161
|
*/
|
|
162
162
|
//% blockId=builtin_neopixel_show_animation_frame block="show frame of %animation=light_animation_picker|animation"
|
|
163
|
-
//% help="light/show-animation-frame"
|
|
163
|
+
//% help="light/neopixelstrip/show-animation-frame"
|
|
164
164
|
//% group="More" weight=24 blockGap=8
|
|
165
165
|
export function showAnimationFrame(animation: NeoPixelAnimation) {
|
|
166
166
|
light.pixels.showAnimationFrame(animation);
|
|
@@ -170,7 +170,7 @@ namespace light {
|
|
|
170
170
|
* Stop the current animation and any other animations ready to show.
|
|
171
171
|
*/
|
|
172
172
|
//% blockId=builtin_neopixel_stop_all_animations block="stop all animations"
|
|
173
|
-
//% help="light/stop-all-animations"
|
|
173
|
+
//% help="light/neopixelstrip/stop-all-animations"
|
|
174
174
|
//% group="More" weight=23
|
|
175
175
|
export function stopAllAnimations() {
|
|
176
176
|
light.pixels.stopAllAnimations();
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# animation
|
|
2
|
+
|
|
3
|
+
Return an instance of the selected builtin animation.
|
|
4
|
+
|
|
5
|
+
```sig
|
|
6
|
+
light.animation(LightAnimation.Sparkle)
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
* **kind**: the type of animation to select, one of the following:
|
|
12
|
+
|
|
13
|
+
>* `running lights`
|
|
14
|
+
>* `comet`
|
|
15
|
+
>* `color wipe`
|
|
16
|
+
>* `theater chase`
|
|
17
|
+
>* `rainbow`
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
Show the `rainbow` animation continuously at `500` millisecond intervals.
|
|
22
|
+
|
|
23
|
+
```blocks
|
|
24
|
+
forever(function() {
|
|
25
|
+
light.showAnimation(LightAnimation.Rainbow, 500)
|
|
26
|
+
})
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## See Also
|
|
30
|
+
|
|
31
|
+
```package
|
|
32
|
+
light
|
|
33
|
+
```
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P100627(s) {
|
|
60
60
|
let r0 = s.r0, step = s.pc;
|
|
61
61
|
s.pc = -1;
|
|
62
62
|
|
|
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
|
|
|
66
66
|
switch (step) {
|
|
67
67
|
case 0:
|
|
68
68
|
|
|
69
|
-
globals.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___100871 = (undefined);
|
|
70
|
+
globals._pollEventQueue___100884 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P100627.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"tsl2591.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P100627.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P100627_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P100627, depth: s.depth + 1,
|
|
82
82
|
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
|
|
83
83
|
} }
|
|
84
84
|
|
|
@@ -87,5 +87,5 @@ function _main___P100875_mk(s) {
|
|
|
87
87
|
|
|
88
88
|
const breakpoints = setupDebugger(1, [])
|
|
89
89
|
|
|
90
|
-
return
|
|
90
|
+
return _main___P100627
|
|
91
91
|
})
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P60651(s) {
|
|
60
60
|
let r0 = s.r0, step = s.pc;
|
|
61
61
|
s.pc = -1;
|
|
62
62
|
|
|
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
|
|
|
66
66
|
switch (step) {
|
|
67
67
|
case 0:
|
|
68
68
|
|
|
69
|
-
globals.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___60895 = (undefined);
|
|
70
|
+
globals._pollEventQueue___60908 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P60651.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"lora.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P60651.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P60651_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P60651, depth: s.depth + 1,
|
|
82
82
|
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
|
|
83
83
|
} }
|
|
84
84
|
|
|
@@ -87,5 +87,5 @@ function _main___P60859_mk(s) {
|
|
|
87
87
|
|
|
88
88
|
const breakpoints = setupDebugger(1, [])
|
|
89
89
|
|
|
90
|
-
return
|
|
90
|
+
return _main___P60651
|
|
91
91
|
})
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P196981(s) {
|
|
60
60
|
let r0 = s.r0, step = s.pc;
|
|
61
61
|
s.pc = -1;
|
|
62
62
|
|
|
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
|
|
|
66
66
|
switch (step) {
|
|
67
67
|
case 0:
|
|
68
68
|
|
|
69
|
-
globals.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___197225 = (undefined);
|
|
70
|
+
globals._pollEventQueue___197238 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P196981.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"keypad.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P196981.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P196981_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P196981, depth: s.depth + 1,
|
|
82
82
|
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
|
|
83
83
|
} }
|
|
84
84
|
|
|
@@ -87,5 +87,5 @@ function _main___P197357_mk(s) {
|
|
|
87
87
|
|
|
88
88
|
const breakpoints = setupDebugger(1, [])
|
|
89
89
|
|
|
90
|
-
return
|
|
90
|
+
return _main___P196981
|
|
91
91
|
})
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P9164(s) {
|
|
60
60
|
let r0 = s.r0, step = s.pc;
|
|
61
61
|
s.pc = -1;
|
|
62
62
|
|
|
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
|
|
|
66
66
|
switch (step) {
|
|
67
67
|
case 0:
|
|
68
68
|
|
|
69
|
-
globals.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___9408 = (undefined);
|
|
70
|
+
globals._pollEventQueue___9421 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P9164.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"targetoverrides.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P9164.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P9164_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P9164, depth: s.depth + 1,
|
|
82
82
|
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
|
|
83
83
|
} }
|
|
84
84
|
|
|
@@ -87,5 +87,5 @@ function _main___P9204_mk(s) {
|
|
|
87
87
|
|
|
88
88
|
const breakpoints = setupDebugger(1, [])
|
|
89
89
|
|
|
90
|
-
return
|
|
90
|
+
return _main___P9164
|
|
91
91
|
})
|
package/libs/mixer/melody.ts
CHANGED
|
@@ -598,6 +598,8 @@ namespace music {
|
|
|
598
598
|
//% song.fieldOptions.taggedTemplate="hex;assets.song"
|
|
599
599
|
//% song.fieldOptions.decompileIndirectFixedInstances="true"
|
|
600
600
|
//% song.fieldOptions.decompileArgumentAsString="true"
|
|
601
|
+
//% song.snippet="hex`00780004080100`"
|
|
602
|
+
//% song.pySnippet='hex("""00780004080100""")'
|
|
601
603
|
//% toolboxParent=music_playable_play
|
|
602
604
|
//% toolboxParentArgument=toPlay
|
|
603
605
|
//% group="Songs"
|
|
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
|
|
|
56
56
|
const pxsim_numops = pxsim.numops;
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function
|
|
59
|
+
function _main___P27874(s) {
|
|
60
60
|
let r0 = s.r0, step = s.pc;
|
|
61
61
|
s.pc = -1;
|
|
62
62
|
|
|
@@ -66,19 +66,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
|
|
|
66
66
|
switch (step) {
|
|
67
67
|
case 0:
|
|
68
68
|
|
|
69
|
-
globals.
|
|
70
|
-
globals.
|
|
69
|
+
globals._intervals___28118 = (undefined);
|
|
70
|
+
globals._pollEventQueue___28131 = (undefined);
|
|
71
71
|
r0 = undefined;
|
|
72
72
|
return leave(s, r0)
|
|
73
73
|
default: oops()
|
|
74
74
|
} } }
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
_main___P27874.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"mouse.ts","functionName":"<main>","argumentNames":[]}
|
|
76
|
+
_main___P27874.continuations = [ ]
|
|
77
77
|
|
|
78
|
-
function
|
|
78
|
+
function _main___P27874_mk(s) {
|
|
79
79
|
checkStack(s.depth);
|
|
80
80
|
return {
|
|
81
|
-
parent: s, fn:
|
|
81
|
+
parent: s, fn: _main___P27874, depth: s.depth + 1,
|
|
82
82
|
pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
|
|
83
83
|
} }
|
|
84
84
|
|
|
@@ -87,5 +87,5 @@ function _main___P28002_mk(s) {
|
|
|
87
87
|
|
|
88
88
|
const breakpoints = setupDebugger(1, [])
|
|
89
89
|
|
|
90
|
-
return
|
|
90
|
+
return _main___P27874
|
|
91
91
|
})
|