pxt-common-packages 9.4.4 → 9.4.8

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 (58) hide show
  1. package/built/common-sim.d.ts +3 -2
  2. package/built/common-sim.js +15 -1
  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 +9043 -7832
  8. package/libs/controller---none/built/debug/binary.js +9022 -7811
  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/_locales/game-strings.json +21 -0
  13. package/libs/game/built/debug/binary.js +8935 -7724
  14. package/libs/game/hitbox.ts +40 -22
  15. package/libs/game/renderText.ts +74 -11
  16. package/libs/game/sprite.ts +244 -16
  17. package/libs/game/spritesay.ts +206 -53
  18. package/libs/lcd/built/debug/binary.js +8 -8
  19. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  20. package/libs/lora/built/debug/binary.js +8 -8
  21. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  22. package/libs/mqtt/built/debug/binary.js +176 -176
  23. package/libs/net/built/debug/binary.js +176 -176
  24. package/libs/net/controller.ts +4 -0
  25. package/libs/net-game/built/debug/binary.js +10832 -9617
  26. package/libs/palette/built/debug/binary.js +8934 -7723
  27. package/libs/pixel/built/debug/binary.js +8 -8
  28. package/libs/power/built/debug/binary.js +8 -8
  29. package/libs/proximity/built/debug/binary.js +9 -9
  30. package/libs/radio/built/debug/binary.js +8 -8
  31. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  32. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  33. package/libs/screen/built/debug/binary.js +50 -50
  34. package/libs/screen/image.cpp +14 -4
  35. package/libs/screen/image.ts +5 -4
  36. package/libs/screen/sim/image.ts +15 -3
  37. package/libs/servo/built/debug/binary.js +8 -8
  38. package/libs/sprite-scaling/README.md +3 -0
  39. package/libs/sprite-scaling/_locales/sprite-scaling-jsdoc-strings.json +1 -0
  40. package/libs/sprite-scaling/_locales/sprite-scaling-strings.json +9 -0
  41. package/libs/sprite-scaling/built/debug/binary.js +40047 -0
  42. package/libs/sprite-scaling/pxt.json +16 -0
  43. package/libs/sprite-scaling/scaling.ts +111 -0
  44. package/libs/sprite-scaling/targetoverrides.ts +1 -0
  45. package/libs/sprite-scaling/test.ts +0 -0
  46. package/libs/storyboard/built/debug/binary.js +8934 -7723
  47. package/libs/wifi---esp32/buildlogin.sh +1 -0
  48. package/libs/wifi---esp32/controller.ts +19 -1
  49. package/libs/wifi---esp32/enums.d.ts +2 -0
  50. package/libs/wifi---esp32/httpserver.cpp +166 -0
  51. package/libs/wifi---esp32/login.full.html +37 -0
  52. package/libs/wifi---esp32/login.html +1 -0
  53. package/libs/wifi---esp32/pxt.json +1 -0
  54. package/libs/wifi---esp32/shims.d.ts +4 -0
  55. package/libs/wifi---esp32/sim/wifisockets.ts +3 -0
  56. package/libs/wifi---esp32/wifi.cpp +13 -14
  57. package/libs/wifi---esp32/wifi.h +13 -1
  58. 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___P135455(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___135696 = (undefined);
70
+ globals._pollEventQueue___135709 = (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___P135455.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"colorbuffer.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P135455.continuations = [ ]
77
77
 
78
- function _main___P134106_mk(s) {
78
+ function _main___P135455_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___P135455, 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___P135455
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___P94899(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___95140 = (undefined);
70
+ globals._pollEventQueue___95153 = (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___P94899.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"tcs34725.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P94899.continuations = [ ]
77
77
 
78
- function _main___P93891_mk(s) {
78
+ function _main___P94899_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___P94899, 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___P94899
92
92
  })