pxt-common-packages 9.4.2 → 9.4.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.
Files changed (46) hide show
  1. package/built/common-sim.d.ts +8 -0
  2. package/built/common-sim.js +74 -0
  3. package/libs/azureiot/built/debug/binary.js +461 -461
  4. package/libs/color/built/debug/binary.js +8 -8
  5. package/libs/color/colors.ts +11 -0
  6. package/libs/color-sensor/built/debug/binary.js +8 -8
  7. package/libs/controller/built/debug/binary.js +6578 -6578
  8. package/libs/controller---none/built/debug/binary.js +6558 -6558
  9. package/libs/datalogger/built/debug/binary.js +63 -63
  10. package/libs/edge-connector/built/debug/binary.js +8 -8
  11. package/libs/esp32/built/debug/binary.js +462 -462
  12. package/libs/game/built/debug/binary.js +6497 -6497
  13. package/libs/game/docs/reference/scene/set-tile-at.md +2 -2
  14. package/libs/game/docs/reference/scene/set-tilemap.md +89 -0
  15. package/libs/game/docs/reference/scene/tile-at-location-equals.md +1 -1
  16. package/libs/game/docs/reference/scene.md +4 -2
  17. package/libs/game/docs/reference/sprites/sprite/ax.md +34 -3
  18. package/libs/game/docs/reference/sprites/sprite/ay.md +34 -3
  19. package/libs/game/docs/reference/sprites/sprite/fx.md +123 -0
  20. package/libs/game/docs/reference/sprites/sprite/fy.md +123 -0
  21. package/libs/game/docs/reference/sprites.md +2 -0
  22. package/libs/game/renderText.ts +74 -11
  23. package/libs/game/spritesay.ts +204 -51
  24. package/libs/game/tilemap.ts +1 -1
  25. package/libs/lcd/built/debug/binary.js +8 -8
  26. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  27. package/libs/lora/built/debug/binary.js +8 -8
  28. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  29. package/libs/mqtt/built/debug/binary.js +176 -176
  30. package/libs/net/built/debug/binary.js +176 -176
  31. package/libs/net-game/built/debug/binary.js +8084 -8084
  32. package/libs/palette/built/debug/binary.js +6492 -6492
  33. package/libs/pixel/built/debug/binary.js +8 -8
  34. package/libs/power/built/debug/binary.js +8 -8
  35. package/libs/proximity/built/debug/binary.js +8 -8
  36. package/libs/radio/built/debug/binary.js +8 -8
  37. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  38. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  39. package/libs/screen/built/debug/binary.js +50 -50
  40. package/libs/servo/built/debug/binary.js +8 -8
  41. package/libs/storyboard/built/debug/binary.js +6496 -6496
  42. package/libs/text-to-speech/pxt.json +14 -0
  43. package/libs/text-to-speech/shims.d.ts +47 -0
  44. package/libs/text-to-speech/sim/tts.ts +72 -0
  45. package/libs/text-to-speech/tts.ts +70 -0
  46. package/package.json +1 -1
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P134106(s) {
59
+ function _main___P134138(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._intervals___134347 = (undefined);
70
- globals._pollEventQueue___134360 = (undefined);
69
+ globals._intervals___134379 = (undefined);
70
+ globals._pollEventQueue___134392 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P134106.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"colorbuffer.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P134106.continuations = [ ]
75
+ _main___P134138.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"colorbuffer.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P134138.continuations = [ ]
77
77
 
78
- function _main___P134106_mk(s) {
78
+ function _main___P134138_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P134106, depth: s.depth + 1,
81
+ parent: s, fn: _main___P134138, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P134106_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P134106
91
+ return _main___P134138
92
92
  })
@@ -3,26 +3,37 @@
3
3
  */
4
4
  const enum Colors {
5
5
  //% block=red
6
+ //% blockIdentity=color.wellKnown
6
7
  Red = 0xFF0000,
7
8
  //% block=orange
9
+ //% blockIdentity=color.wellKnown
8
10
  Orange = 0xFF7F00,
9
11
  //% block=yellow
12
+ //% blockIdentity=color.wellKnown
10
13
  Yellow = 0xFFFF00,
11
14
  //% block=green
15
+ //% blockIdentity=color.wellKnown
12
16
  Green = 0x00FF00,
13
17
  //% block=blue
18
+ //% blockIdentity=color.wellKnown
14
19
  Blue = 0x0000FF,
15
20
  //% block=indigo
21
+ //% blockIdentity=color.wellKnown
16
22
  Indigo = 0x4b0082,
17
23
  //% block=violet
24
+ //% blockIdentity=color.wellKnown
18
25
  Violet = 0x8a2be2,
19
26
  //% block=purple
27
+ //% blockIdentity=color.wellKnown
20
28
  Purple = 0xA033E5,
21
29
  //% block=pink
30
+ //% blockIdentity=color.wellKnown
22
31
  Pink = 0xFF007F,
23
32
  //% block=white
33
+ //% blockIdentity=color.wellKnown
24
34
  White = 0xFFFFFF,
25
35
  //% block=black
36
+ //% blockIdentity=color.wellKnown
26
37
  Black = 0x000000
27
38
  }
28
39
 
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P93891(s) {
59
+ function _main___P93915(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._intervals___94132 = (undefined);
70
- globals._pollEventQueue___94145 = (undefined);
69
+ globals._intervals___94156 = (undefined);
70
+ globals._pollEventQueue___94169 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P93891.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"tcs34725.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P93891.continuations = [ ]
75
+ _main___P93915.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"tcs34725.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P93915.continuations = [ ]
77
77
 
78
- function _main___P93891_mk(s) {
78
+ function _main___P93915_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P93891, depth: s.depth + 1,
81
+ parent: s, fn: _main___P93915, depth: s.depth + 1,
82
82
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
83
83
  } }
84
84
 
@@ -88,5 +88,5 @@ function _main___P93891_mk(s) {
88
88
 
89
89
  const breakpoints = setupDebugger(1, [])
90
90
 
91
- return _main___P93891
91
+ return _main___P93915
92
92
  })