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.
Files changed (58) hide show
  1. package/built/common-sim.d.ts +0 -6
  2. package/built/common-sim.js +0 -23
  3. package/libs/accelerometer/built/debug/binary.js +8 -8
  4. package/libs/azureiot/built/debug/binary.js +461 -461
  5. package/libs/color/built/debug/binary.js +8 -8
  6. package/libs/color-sensor/built/debug/binary.js +8 -8
  7. package/libs/controller/built/debug/binary.js +7348 -7348
  8. package/libs/controller---none/built/debug/binary.js +7328 -7328
  9. package/libs/core/_locales/core-jsdoc-strings.json +0 -13
  10. package/libs/core/_locales/core-strings.json +0 -2
  11. package/libs/core/pxt.json +0 -2
  12. package/libs/core/shims.d.ts +0 -30
  13. package/libs/core---samd/_locales/core---samd-jsdoc-strings.json +0 -13
  14. package/libs/core---samd/_locales/core---samd-strings.json +0 -2
  15. package/libs/core---samd/built/debug/binary.js +8 -8
  16. package/libs/core---samd/shims.d.ts +0 -30
  17. package/libs/datalogger/built/debug/binary.js +63 -63
  18. package/libs/edge-connector/built/debug/binary.js +8 -8
  19. package/libs/esp32/built/debug/binary.js +462 -462
  20. package/libs/game/built/debug/binary.js +7267 -7267
  21. package/libs/gamepad/built/debug/binary.js +8 -8
  22. package/libs/keyboard/built/debug/binary.js +8 -8
  23. package/libs/lcd/built/debug/binary.js +8 -8
  24. package/libs/light/built/debug/binary.js +8 -8
  25. package/libs/light/defaultlights.ts +14 -14
  26. package/libs/light/docs/reference/light/animation.md +33 -0
  27. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  28. package/libs/lora/built/debug/binary.js +8 -8
  29. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  30. package/libs/microphone/built/debug/binary.js +8 -8
  31. package/libs/mixer/melody.ts +2 -0
  32. package/libs/mouse/built/debug/binary.js +8 -8
  33. package/libs/mqtt/built/debug/binary.js +176 -176
  34. package/libs/music/built/debug/binary.js +8 -8
  35. package/libs/net/built/debug/binary.js +176 -176
  36. package/libs/net-game/built/debug/binary.js +8984 -8984
  37. package/libs/palette/built/debug/binary.js +7266 -7266
  38. package/libs/pixel/built/debug/binary.js +8 -8
  39. package/libs/power/built/debug/binary.js +8 -8
  40. package/libs/proximity/built/debug/binary.js +8 -8
  41. package/libs/pulse/built/debug/binary.js +8 -8
  42. package/libs/radio/built/debug/binary.js +8 -8
  43. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  44. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  45. package/libs/rotary-encoder/docs/reference/encoders/on-changed.md +29 -0
  46. package/libs/rotary-encoder/docs/reference/encoders/position.md +33 -0
  47. package/libs/rotary-encoder/rotary.cpp +2 -2
  48. package/libs/rotary-encoder/shims.d.ts +2 -2
  49. package/libs/screen/built/debug/binary.js +50 -50
  50. package/libs/servo/built/debug/binary.js +8 -8
  51. package/libs/sprite-scaling/built/debug/binary.js +7266 -7266
  52. package/libs/storyboard/built/debug/binary.js +7266 -7266
  53. package/libs/tests/built/debug/binary.js +15 -15
  54. package/libs/thermometer/built/debug/binary.js +8 -8
  55. package/package.json +1 -1
  56. package/libs/core/keyvaluestorage.cpp +0 -109
  57. package/libs/core/keyvaluestorage.ts +0 -43
  58. package/libs/core/sim/keyvaluestorage.ts +0 -15
@@ -23,19 +23,6 @@
23
23
  "SPI.setMode": "Sets the SPI bus mode",
24
24
  "SPI.transfer": "Transfer buffers over the SPI bus",
25
25
  "SPI.write": "Write to the SPI bus",
26
- "configStorage.clear": "Clears the local storage",
27
- "configStorage.getBuffer": "Gets an entry from the device storage. Key may have up to 16 characters (bytes).",
28
- "configStorage.getBuffer|param|key": "the identifier (max 16 characters)",
29
- "configStorage.getItem": "Retrieves the value at the key entry",
30
- "configStorage.getItem|param|key": "identifier of the key (max 16 characters)",
31
- "configStorage.removeItem": "Removes the key from local storage",
32
- "configStorage.removeItem|param|key": "the identifier (max 16 characters)",
33
- "configStorage.setBuffer": "Puts an entry in the device storage. Key may have up to 16 characters (bytes).",
34
- "configStorage.setBuffer|param|key": "the identifier (max 16 characters)",
35
- "configStorage.setBuffer|param|value": "the data (max 32 characters)",
36
- "configStorage.setItem": "Stores the value at the key entry",
37
- "configStorage.setItem|param|key": "identifier of the key (max 16 characters)",
38
- "configStorage.setItem|param|value": "identifier of the value (max 32 characters)",
39
26
  "control": "Program controls and events.",
40
27
  "control.Timer": "A timer",
41
28
  "control.Timer.millis": "Gets the elapsed time in millis since the last reset",
@@ -19,7 +19,6 @@
19
19
  "PwmOnlyPin.analogSetPeriod|block": "analog set period|pin %pin|to (µs)%period",
20
20
  "PwmOnlyPin.servoSetPulse|block": "servo set pulse|pin %value|to (µs) %duration",
21
21
  "PwmOnlyPin.servoWrite|block": "servo write|pin %name|to %value=protractorPicker",
22
- "configStorage|block": "configStorage",
23
22
  "control.Timer.millis|block": "%timer|millis",
24
23
  "control.Timer.pauseUntil|block": "%timer|pause until (ms) %ms",
25
24
  "control.Timer.reset|block": "%timer|reset",
@@ -46,7 +45,6 @@
46
45
  "pins.spiTransfer|block": "spi transfer %command into %response",
47
46
  "pins.spiWrite|block": "spi write %value",
48
47
  "pins|block": "pins",
49
- "{id:category}ConfigStorage": "ConfigStorage",
50
48
  "{id:category}Control": "Control",
51
49
  "{id:category}I2C": "I2C",
52
50
  "{id:category}Light": "Light",
@@ -35,8 +35,6 @@
35
35
  "timer.ts",
36
36
  "light.cpp",
37
37
  "light.h",
38
- "keyvaluestorage.cpp",
39
- "keyvaluestorage.ts",
40
38
  "leveldetector.ts",
41
39
  "pxtparts.json"
42
40
  ],
@@ -314,35 +314,5 @@ declare interface SPI {
314
314
  //% shim=SPIMethods::setMode
315
315
  setMode(mode: int32): void;
316
316
  }
317
- declare namespace configStorage {
318
-
319
- /**
320
- * Puts an entry in the device storage. Key may have up to 16 characters (bytes).
321
- * @param key the identifier (max 16 characters)
322
- * @param value the data (max 32 characters)
323
- */
324
- //% shim=configStorage::setBuffer
325
- function setBuffer(key: string, value: Buffer): void;
326
-
327
- /**
328
- * Gets an entry from the device storage. Key may have up to 16 characters (bytes).
329
- * @param key the identifier (max 16 characters)
330
- */
331
- //% shim=configStorage::getBuffer
332
- function getBuffer(key: string): Buffer;
333
-
334
- /**
335
- * Removes the key from local storage
336
- * @param key the identifier (max 16 characters)
337
- */
338
- //% shim=configStorage::removeItem
339
- function removeItem(key: string): void;
340
-
341
- /**
342
- * Clears the local storage
343
- */
344
- //% shim=configStorage::clear
345
- function clear(): void;
346
- }
347
317
 
348
318
  // Auto-generated. Do not edit. Really.
@@ -23,19 +23,6 @@
23
23
  "SPI.setMode": "Sets the SPI bus mode",
24
24
  "SPI.transfer": "Transfer buffers over the SPI bus",
25
25
  "SPI.write": "Write to the SPI bus",
26
- "configStorage.clear": "Clears the local storage",
27
- "configStorage.getBuffer": "Gets an entry from the device storage. Key may have up to 16 characters (bytes).",
28
- "configStorage.getBuffer|param|key": "the identifier (max 16 characters)",
29
- "configStorage.getItem": "Retrieves the value at the key entry",
30
- "configStorage.getItem|param|key": "identifier of the key (max 16 characters)",
31
- "configStorage.removeItem": "Removes the key from local storage",
32
- "configStorage.removeItem|param|key": "the identifier (max 16 characters)",
33
- "configStorage.setBuffer": "Puts an entry in the device storage. Key may have up to 16 characters (bytes).",
34
- "configStorage.setBuffer|param|key": "the identifier (max 16 characters)",
35
- "configStorage.setBuffer|param|value": "the data (max 32 characters)",
36
- "configStorage.setItem": "Stores the value at the key entry",
37
- "configStorage.setItem|param|key": "identifier of the key (max 16 characters)",
38
- "configStorage.setItem|param|value": "identifier of the value (max 32 characters)",
39
26
  "control": "Program controls and events.",
40
27
  "control.Timer": "A timer",
41
28
  "control.Timer.millis": "Gets the elapsed time in millis since the last reset",
@@ -19,7 +19,6 @@
19
19
  "PwmOnlyPin.analogSetPeriod|block": "analog set period|pin %pin|to (µs)%period",
20
20
  "PwmOnlyPin.servoSetPulse|block": "servo set pulse|pin %value|to (µs) %duration",
21
21
  "PwmOnlyPin.servoWrite|block": "servo write|pin %name|to %value=protractorPicker",
22
- "configStorage|block": "configStorage",
23
22
  "control.Timer.millis|block": "%timer|millis",
24
23
  "control.Timer.pauseUntil|block": "%timer|pause until (ms) %ms",
25
24
  "control.Timer.reset|block": "%timer|reset",
@@ -46,7 +45,6 @@
46
45
  "pins.spiTransfer|block": "spi transfer %command into %response",
47
46
  "pins.spiWrite|block": "spi write %value",
48
47
  "pins|block": "pins",
49
- "{id:category}ConfigStorage": "ConfigStorage",
50
48
  "{id:category}Control": "Control",
51
49
  "{id:category}I2C": "I2C",
52
50
  "{id:category}Light": "Light",
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P1857(s) {
59
+ function _main___P1849(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___2101 = (undefined);
70
- globals._pollEventQueue___2114 = (undefined);
69
+ globals._intervals___2093 = (undefined);
70
+ globals._pollEventQueue___2106 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P1857.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"leveldetector.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P1857.continuations = [ ]
75
+ _main___P1849.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"leveldetector.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P1849.continuations = [ ]
77
77
 
78
- function _main___P1857_mk(s) {
78
+ function _main___P1849_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P1857, depth: s.depth + 1,
81
+ parent: s, fn: _main___P1849, 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___P1857_mk(s) {
87
87
 
88
88
  const breakpoints = setupDebugger(1, [])
89
89
 
90
- return _main___P1857
90
+ return _main___P1849
91
91
  })
@@ -314,35 +314,5 @@ declare interface SPI {
314
314
  //% shim=SPIMethods::setMode
315
315
  setMode(mode: int32): void;
316
316
  }
317
- declare namespace configStorage {
318
-
319
- /**
320
- * Puts an entry in the device storage. Key may have up to 16 characters (bytes).
321
- * @param key the identifier (max 16 characters)
322
- * @param value the data (max 32 characters)
323
- */
324
- //% shim=configStorage::setBuffer
325
- function setBuffer(key: string, value: Buffer): void;
326
-
327
- /**
328
- * Gets an entry from the device storage. Key may have up to 16 characters (bytes).
329
- * @param key the identifier (max 16 characters)
330
- */
331
- //% shim=configStorage::getBuffer
332
- function getBuffer(key: string): Buffer;
333
-
334
- /**
335
- * Removes the key from local storage
336
- * @param key the identifier (max 16 characters)
337
- */
338
- //% shim=configStorage::removeItem
339
- function removeItem(key: string): void;
340
-
341
- /**
342
- * Clears the local storage
343
- */
344
- //% shim=configStorage::clear
345
- function clear(): void;
346
- }
347
317
 
348
318
  // Auto-generated. Do not edit. Really.
@@ -58,7 +58,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
58
58
  const pxsim_numops = pxsim.numops;
59
59
 
60
60
 
61
- function _main___P59019(s) {
61
+ function _main___P58819(s) {
62
62
  let r0 = s.r0, step = s.pc;
63
63
  s.pc = -1;
64
64
 
@@ -68,20 +68,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
68
68
  switch (step) {
69
69
  case 0:
70
70
 
71
- globals._intervals___59263 = (undefined);
72
- globals._pollEventQueue___59276 = (undefined);
71
+ globals._intervals___59063 = (undefined);
72
+ globals._pollEventQueue___59076 = (undefined);
73
73
  r0 = pxsim.storage.init();
74
- globals._headers___59481 = (undefined);
75
- globals._row___59485 = (undefined);
76
- r0 = pxsim_pxtcore_mkClassInstance(datalogger_FileStorage__C59512_VT);
74
+ globals._headers___59275 = (undefined);
75
+ globals._row___59279 = (undefined);
76
+ r0 = pxsim_pxtcore_mkClassInstance(datalogger_FileStorage__C59306_VT);
77
77
  s.tmp_0 = r0;
78
- s.tmp_1 = datalogger_FileStorage_constructor__P59518_mk(s);
78
+ s.tmp_1 = datalogger_FileStorage_constructor__P59312_mk(s);
79
79
  s.tmp_1.arg0 = s.tmp_0;
80
80
  s.tmp_1.arg1 = "log.csv";
81
81
  s.callLocIdx = 3; s.pc = 1; return s.tmp_1;
82
82
  case 1:
83
83
  r0 = s.retval;
84
- s.tmp_2 = datalogger_setStorage__P59505_mk(s);
84
+ s.tmp_2 = datalogger_setStorage__P59299_mk(s);
85
85
  s.tmp_2.arg0 = s.tmp_0;
86
86
  s.callLocIdx = 4; s.pc = 2; return s.tmp_2;
87
87
  case 2:
@@ -90,13 +90,13 @@ switch (step) {
90
90
  return leave(s, r0)
91
91
  default: oops()
92
92
  } } }
93
- _main___P59019.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"targetoverrides.ts","functionName":"<main>","argumentNames":[]}
94
- _main___P59019.continuations = [ ]
93
+ _main___P58819.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"targetoverrides.ts","functionName":"<main>","argumentNames":[]}
94
+ _main___P58819.continuations = [ ]
95
95
 
96
- function _main___P59019_mk(s) {
96
+ function _main___P58819_mk(s) {
97
97
  checkStack(s.depth);
98
98
  return {
99
- parent: s, fn: _main___P59019, depth: s.depth + 1,
99
+ parent: s, fn: _main___P58819, depth: s.depth + 1,
100
100
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
101
101
  tmp_0: undefined,
102
102
  tmp_1: undefined,
@@ -106,7 +106,7 @@ function _main___P59019_mk(s) {
106
106
 
107
107
 
108
108
 
109
- function datalogger_FileStorage_constructor__P59518(s) {
109
+ function datalogger_FileStorage_constructor__P59312(s) {
110
110
  let r0 = s.r0, step = s.pc;
111
111
  s.pc = -1;
112
112
 
@@ -122,19 +122,19 @@ switch (step) {
122
122
  s.lambdaArgs = null;
123
123
  }
124
124
  r0 = s.arg0;
125
- if (!checkSubtype(r0, datalogger_FileStorage__C59512_VT)) failedCast(r0, datalogger_FileStorage__C59512_VT);
125
+ if (!checkSubtype(r0, datalogger_FileStorage__C59306_VT)) failedCast(r0, datalogger_FileStorage__C59306_VT);
126
126
  r0 = undefined;
127
127
  r0 = (s.arg0).fields["filename"] = (s.arg1);
128
128
  r0 = undefined;
129
129
  return leave(s, r0)
130
130
  default: oops()
131
131
  } } }
132
- datalogger_FileStorage_constructor__P59518.info = {"start":192,"length":99,"line":7,"column":8,"endLine":10,"endColumn":9,"fileName":"storagedatalogger.ts","functionName":"inline","argumentNames":["this","filename"]}
132
+ datalogger_FileStorage_constructor__P59312.info = {"start":192,"length":99,"line":7,"column":8,"endLine":10,"endColumn":9,"fileName":"storagedatalogger.ts","functionName":"inline","argumentNames":["this","filename"]}
133
133
 
134
- function datalogger_FileStorage_constructor__P59518_mk(s) {
134
+ function datalogger_FileStorage_constructor__P59312_mk(s) {
135
135
  checkStack(s.depth);
136
136
  return {
137
- parent: s, fn: datalogger_FileStorage_constructor__P59518, depth: s.depth + 1,
137
+ parent: s, fn: datalogger_FileStorage_constructor__P59312, depth: s.depth + 1,
138
138
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
139
139
  arg0: undefined,
140
140
  arg1: undefined,
@@ -143,7 +143,7 @@ function datalogger_FileStorage_constructor__P59518_mk(s) {
143
143
 
144
144
 
145
145
 
146
- function datalogger_Storage_constructor__P59479(s) {
146
+ function datalogger_Storage_constructor__P59273(s) {
147
147
  let r0 = s.r0, step = s.pc;
148
148
  s.pc = -1;
149
149
 
@@ -158,17 +158,17 @@ switch (step) {
158
158
  s.lambdaArgs = null;
159
159
  }
160
160
  r0 = s.arg0;
161
- if (!checkSubtype(r0, datalogger_Storage__C59474_VT)) failedCast(r0, datalogger_Storage__C59474_VT);
161
+ if (!checkSubtype(r0, datalogger_Storage__C59268_VT)) failedCast(r0, datalogger_Storage__C59268_VT);
162
162
  r0 = undefined;
163
163
  return leave(s, r0)
164
164
  default: oops()
165
165
  } } }
166
- datalogger_Storage_constructor__P59479.info = {"start":412,"length":25,"line":20,"column":8,"endLine":21,"endColumn":9,"fileName":"datalogger.ts","functionName":"inline","argumentNames":["this"]}
166
+ datalogger_Storage_constructor__P59273.info = {"start":412,"length":25,"line":20,"column":8,"endLine":21,"endColumn":9,"fileName":"datalogger.ts","functionName":"inline","argumentNames":["this"]}
167
167
 
168
- function datalogger_Storage_constructor__P59479_mk(s) {
168
+ function datalogger_Storage_constructor__P59273_mk(s) {
169
169
  checkStack(s.depth);
170
170
  return {
171
- parent: s, fn: datalogger_Storage_constructor__P59479, depth: s.depth + 1,
171
+ parent: s, fn: datalogger_Storage_constructor__P59273, depth: s.depth + 1,
172
172
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
173
173
  arg0: undefined,
174
174
  } }
@@ -176,7 +176,7 @@ function datalogger_Storage_constructor__P59479_mk(s) {
176
176
 
177
177
 
178
178
 
179
- function datalogger_setStorage__P59505(s) {
179
+ function datalogger_setStorage__P59299(s) {
180
180
  let r0 = s.r0, step = s.pc;
181
181
  s.pc = -1;
182
182
 
@@ -190,12 +190,12 @@ switch (step) {
190
190
  s.arg0 = (s.lambdaArgs[0]);
191
191
  s.lambdaArgs = null;
192
192
  }
193
- s.tmp_0 = datalogger_flush__P59506_mk(s);
193
+ s.tmp_0 = datalogger_flush__P59300_mk(s);
194
194
  s.callLocIdx = 0; s.pc = 1; return s.tmp_0;
195
195
  case 1:
196
196
  r0 = s.retval;
197
- globals._storage___59487 = (s.arg0);
198
- s.tmp_0 = datalogger_clear__P59500_mk(s);
197
+ globals._storage___59281 = (s.arg0);
198
+ s.tmp_0 = datalogger_clear__P59294_mk(s);
199
199
  s.callLocIdx = 1; s.pc = 2; return s.tmp_0;
200
200
  case 2:
201
201
  r0 = s.retval;
@@ -203,12 +203,12 @@ switch (step) {
203
203
  return leave(s, r0)
204
204
  default: oops()
205
205
  } } }
206
- datalogger_setStorage__P59505.info = {"start":4000,"length":114,"line":151,"column":4,"endLine":155,"endColumn":5,"fileName":"datalogger.ts","functionName":"setStorage","argumentNames":["storage"]}
206
+ datalogger_setStorage__P59299.info = {"start":4000,"length":114,"line":151,"column":4,"endLine":155,"endColumn":5,"fileName":"datalogger.ts","functionName":"setStorage","argumentNames":["storage"]}
207
207
 
208
- function datalogger_setStorage__P59505_mk(s) {
208
+ function datalogger_setStorage__P59299_mk(s) {
209
209
  checkStack(s.depth);
210
210
  return {
211
- parent: s, fn: datalogger_setStorage__P59505, depth: s.depth + 1,
211
+ parent: s, fn: datalogger_setStorage__P59299, depth: s.depth + 1,
212
212
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
213
213
  tmp_0: undefined,
214
214
  arg0: undefined,
@@ -217,7 +217,7 @@ function datalogger_setStorage__P59505_mk(s) {
217
217
 
218
218
 
219
219
 
220
- function datalogger_clear__P59500(s) {
220
+ function datalogger_clear__P59294(s) {
221
221
  let r0 = s.r0, step = s.pc;
222
222
  s.pc = -1;
223
223
 
@@ -227,25 +227,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
227
227
  switch (step) {
228
228
  case 0:
229
229
 
230
- globals._headers___59481 = (undefined);
231
- globals._row___59485 = (undefined);
230
+ globals._headers___59275 = (undefined);
231
+ globals._row___59279 = (undefined);
232
232
  r0 = undefined;
233
233
  return leave(s, r0)
234
234
  default: oops()
235
235
  } } }
236
- datalogger_clear__P59500.info = {"start":1145,"length":80,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"datalogger.ts","functionName":"clear","argumentNames":[]}
236
+ datalogger_clear__P59294.info = {"start":1145,"length":80,"line":51,"column":4,"endLine":54,"endColumn":5,"fileName":"datalogger.ts","functionName":"clear","argumentNames":[]}
237
237
 
238
- function datalogger_clear__P59500_mk(s) {
238
+ function datalogger_clear__P59294_mk(s) {
239
239
  checkStack(s.depth);
240
240
  return {
241
- parent: s, fn: datalogger_clear__P59500, depth: s.depth + 1,
241
+ parent: s, fn: datalogger_clear__P59294, depth: s.depth + 1,
242
242
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
243
243
  } }
244
244
 
245
245
 
246
246
 
247
247
 
248
- function datalogger_flush__P59506(s) {
248
+ function datalogger_flush__P59300(s) {
249
249
  let r0 = s.r0, step = s.pc;
250
250
  s.pc = -1;
251
251
 
@@ -255,21 +255,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re
255
255
  switch (step) {
256
256
  case 0:
257
257
 
258
- s.tmp_0 = r0 = globals._headers___59481;
258
+ s.tmp_0 = r0 = globals._headers___59275;
259
259
  r0 = pxsim_numops_toBool(s.tmp_0);
260
260
  if (r0) { step = 1; continue; }
261
261
  r0 = s.tmp_0;
262
262
  { step = 2; continue; }
263
263
  case 1:
264
- r0 = globals._storage___59487;
264
+ r0 = globals._storage___59281;
265
265
  case 2:
266
266
  // jmp value (already in r0)
267
267
  s.tmp_1 = r0;
268
268
  r0 = pxsim_numops_toBoolDecr(s.tmp_1);
269
269
  if (!r0) { step = 3; continue; }
270
- s.tmp_2 = datalogger_Storage__C59474_v0_1_mk(s);
271
- s.tmp_2.arg0 = globals._storage___59487;
272
- if (!checkSubtype(s.tmp_2.arg0, datalogger_Storage__C59474_VT)) failedCast(s.tmp_2.arg0, datalogger_Storage__C59474_VT);
270
+ s.tmp_2 = datalogger_Storage__C59268_v0_1_mk(s);
271
+ s.tmp_2.arg0 = globals._storage___59281;
272
+ if (!checkSubtype(s.tmp_2.arg0, datalogger_Storage__C59268_VT)) failedCast(s.tmp_2.arg0, datalogger_Storage__C59268_VT);
273
273
  s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.flush;
274
274
  s.pc = 5; return s.tmp_2;
275
275
  case 5:
@@ -280,12 +280,12 @@ switch (step) {
280
280
  return leave(s, r0)
281
281
  default: oops()
282
282
  } } }
283
- datalogger_flush__P59506.info = {"start":4184,"length":95,"line":161,"column":4,"endLine":164,"endColumn":5,"fileName":"datalogger.ts","functionName":"flush","argumentNames":[]}
283
+ datalogger_flush__P59300.info = {"start":4184,"length":95,"line":161,"column":4,"endLine":164,"endColumn":5,"fileName":"datalogger.ts","functionName":"flush","argumentNames":[]}
284
284
 
285
- function datalogger_flush__P59506_mk(s) {
285
+ function datalogger_flush__P59300_mk(s) {
286
286
  checkStack(s.depth);
287
287
  return {
288
- parent: s, fn: datalogger_flush__P59506, depth: s.depth + 1,
288
+ parent: s, fn: datalogger_flush__P59300, depth: s.depth + 1,
289
289
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
290
290
  tmp_0: undefined,
291
291
  tmp_1: undefined,
@@ -295,7 +295,7 @@ function datalogger_flush__P59506_mk(s) {
295
295
 
296
296
 
297
297
 
298
- function datalogger_Storage_flush__P59478(s) {
298
+ function datalogger_Storage_flush__P59272(s) {
299
299
  let r0 = s.r0, step = s.pc;
300
300
  s.pc = -1;
301
301
 
@@ -310,17 +310,17 @@ switch (step) {
310
310
  s.lambdaArgs = null;
311
311
  }
312
312
  r0 = s.arg0;
313
- if (!checkSubtype(r0, datalogger_Storage__C59474_VT)) failedCast(r0, datalogger_Storage__C59474_VT);
313
+ if (!checkSubtype(r0, datalogger_Storage__C59268_VT)) failedCast(r0, datalogger_Storage__C59268_VT);
314
314
  r0 = undefined;
315
315
  return leave(s, r0)
316
316
  default: oops()
317
317
  } } }
318
- datalogger_Storage_flush__P59478.info = {"start":807,"length":17,"line":37,"column":8,"endLine":37,"endColumn":25,"fileName":"datalogger.ts","functionName":"flush","argumentNames":["this"]}
318
+ datalogger_Storage_flush__P59272.info = {"start":807,"length":17,"line":37,"column":8,"endLine":37,"endColumn":25,"fileName":"datalogger.ts","functionName":"flush","argumentNames":["this"]}
319
319
 
320
- function datalogger_Storage_flush__P59478_mk(s) {
320
+ function datalogger_Storage_flush__P59272_mk(s) {
321
321
  checkStack(s.depth);
322
322
  return {
323
- parent: s, fn: datalogger_Storage_flush__P59478, depth: s.depth + 1,
323
+ parent: s, fn: datalogger_Storage_flush__P59272, depth: s.depth + 1,
324
324
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
325
325
  arg0: undefined,
326
326
  } }
@@ -328,7 +328,7 @@ function datalogger_Storage_flush__P59478_mk(s) {
328
328
 
329
329
 
330
330
 
331
- function datalogger_FileStorage_flush__P59517(s) {
331
+ function datalogger_FileStorage_flush__P59311(s) {
332
332
  let r0 = s.r0, step = s.pc;
333
333
  s.pc = -1;
334
334
 
@@ -343,24 +343,24 @@ switch (step) {
343
343
  s.lambdaArgs = null;
344
344
  }
345
345
  r0 = s.arg0;
346
- if (!checkSubtype(r0, datalogger_FileStorage__C59512_VT)) failedCast(r0, datalogger_FileStorage__C59512_VT);
346
+ if (!checkSubtype(r0, datalogger_FileStorage__C59306_VT)) failedCast(r0, datalogger_FileStorage__C59306_VT);
347
347
  r0 = undefined;
348
348
  return leave(s, r0)
349
349
  default: oops()
350
350
  } } }
351
- datalogger_FileStorage_flush__P59517.info = {"start":1121,"length":27,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"storagedatalogger.ts","functionName":"flush","argumentNames":["this"]}
351
+ datalogger_FileStorage_flush__P59311.info = {"start":1121,"length":27,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"storagedatalogger.ts","functionName":"flush","argumentNames":["this"]}
352
352
 
353
- function datalogger_FileStorage_flush__P59517_mk(s) {
353
+ function datalogger_FileStorage_flush__P59311_mk(s) {
354
354
  checkStack(s.depth);
355
355
  return {
356
- parent: s, fn: datalogger_FileStorage_flush__P59517, depth: s.depth + 1,
356
+ parent: s, fn: datalogger_FileStorage_flush__P59311, depth: s.depth + 1,
357
357
  pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null,
358
358
  arg0: undefined,
359
359
  } }
360
360
 
361
361
 
362
362
 
363
- function datalogger_Storage__C59474_v0_1_mk(s) {
363
+ function datalogger_Storage__C59268_v0_1_mk(s) {
364
364
  checkStack(s.depth);
365
365
  return {
366
366
  parent: s, fn: null, depth: s.depth + 1,
@@ -373,36 +373,36 @@ function datalogger_Storage__C59474_v0_1_mk(s) {
373
373
  arg0: undefined,
374
374
  } }
375
375
 
376
- const datalogger_Storage__C59474_VT = mkVTable({
376
+ const datalogger_Storage__C59268_VT = mkVTable({
377
377
  name: "Storage",
378
378
  numFields: 0,
379
379
  classNo: 16,
380
380
  lastSubtypeNo: 17,
381
381
  maxBgInstances: null,
382
382
  methods: {
383
- "flush": datalogger_Storage_flush__P59478,
383
+ "flush": datalogger_Storage_flush__P59272,
384
384
  },
385
385
  iface: {
386
- "flush": datalogger_Storage_flush__P59478,
386
+ "flush": datalogger_Storage_flush__P59272,
387
387
  },
388
388
  });
389
- const datalogger_FileStorage__C59512_VT = mkVTable({
389
+ const datalogger_FileStorage__C59306_VT = mkVTable({
390
390
  name: "FileStorage",
391
391
  numFields: 1,
392
392
  classNo: 17,
393
393
  lastSubtypeNo: 17,
394
394
  maxBgInstances: null,
395
395
  methods: {
396
- "flush": datalogger_FileStorage_flush__P59517,
396
+ "flush": datalogger_FileStorage_flush__P59311,
397
397
  },
398
398
  iface: {
399
399
  "filename": null,
400
400
  "set/filename": null,
401
- "flush": datalogger_FileStorage_flush__P59517,
401
+ "flush": datalogger_FileStorage_flush__P59311,
402
402
  },
403
403
  });
404
404
 
405
- const breakpoints = setupDebugger(1, ["_headers___59481","_row___59485","_storage___59487"])
405
+ const breakpoints = setupDebugger(1, ["_headers___59275","_row___59279","_storage___59281"])
406
406
 
407
- return _main___P59019
407
+ return _main___P58819
408
408
  })
@@ -56,7 +56,7 @@ const pxsim_pxtrt = pxsim.pxtrt;
56
56
  const pxsim_numops = pxsim.numops;
57
57
 
58
58
 
59
- function _main___P102912(s) {
59
+ function _main___P102656(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___103156 = (undefined);
70
- globals._pollEventQueue___103169 = (undefined);
69
+ globals._intervals___102900 = (undefined);
70
+ globals._pollEventQueue___102913 = (undefined);
71
71
  r0 = undefined;
72
72
  return leave(s, r0)
73
73
  default: oops()
74
74
  } } }
75
- _main___P102912.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/core/pinscompat.ts","functionName":"<main>","argumentNames":[]}
76
- _main___P102912.continuations = [ ]
75
+ _main___P102656.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/core/pinscompat.ts","functionName":"<main>","argumentNames":[]}
76
+ _main___P102656.continuations = [ ]
77
77
 
78
- function _main___P102912_mk(s) {
78
+ function _main___P102656_mk(s) {
79
79
  checkStack(s.depth);
80
80
  return {
81
- parent: s, fn: _main___P102912, depth: s.depth + 1,
81
+ parent: s, fn: _main___P102656, 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___P102912_mk(s) {
87
87
 
88
88
  const breakpoints = setupDebugger(1, [])
89
89
 
90
- return _main___P102912
90
+ return _main___P102656
91
91
  })