pxt-common-packages 12.0.1 → 12.0.3

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 (36) hide show
  1. package/built/common-sim.js +5 -5
  2. package/libs/azureiot/built/debug/binary.js +461 -461
  3. package/libs/base/configkeys.h +1 -0
  4. package/libs/base/sim/control.ts +1 -1
  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 +7120 -7120
  8. package/libs/controller---none/built/debug/binary.js +7100 -7100
  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 +7039 -7039
  13. package/libs/game/game.ts +11 -1
  14. package/libs/game/info.ts +7 -2
  15. package/libs/lcd/built/debug/binary.js +8 -8
  16. package/libs/light-spectrum-sensor/built/debug/binary.js +8 -8
  17. package/libs/lora/built/debug/binary.js +8 -8
  18. package/libs/matrix-keypad/built/debug/binary.js +8 -8
  19. package/libs/mixer/sim/music.ts +4 -4
  20. package/libs/mqtt/built/debug/binary.js +176 -176
  21. package/libs/net/built/debug/binary.js +176 -176
  22. package/libs/net-game/built/debug/binary.js +8628 -8628
  23. package/libs/palette/built/debug/binary.js +7038 -7038
  24. package/libs/pixel/built/debug/binary.js +8 -8
  25. package/libs/power/built/debug/binary.js +8 -8
  26. package/libs/proximity/built/debug/binary.js +8 -8
  27. package/libs/radio/built/debug/binary.js +8 -8
  28. package/libs/radio-broadcast/built/debug/binary.js +8 -8
  29. package/libs/rotary-encoder/built/debug/binary.js +8 -8
  30. package/libs/screen/built/debug/binary.js +50 -50
  31. package/libs/servo/built/debug/binary.js +8 -8
  32. package/libs/servo/docs/reference/servos/set-pulse.md +1 -1
  33. package/libs/settings/settings.cpp +5 -0
  34. package/libs/sprite-scaling/built/debug/binary.js +7038 -7038
  35. package/libs/storyboard/built/debug/binary.js +7038 -7038
  36. package/package.json +2 -2
@@ -428,7 +428,7 @@ var pxsim;
428
428
  (function (pxtcore) {
429
429
  // TODO: add in support for mode, as in CODAL
430
430
  function registerWithDal(id, evid, handler, mode = 0) {
431
- pxsim.board().bus.listen(id, evid, handler);
431
+ pxsim.board().bus.listen(id, evid, handler, mode);
432
432
  }
433
433
  pxtcore.registerWithDal = registerWithDal;
434
434
  function deepSleep() {
@@ -3599,16 +3599,16 @@ var pxsim;
3599
3599
  sequencers.push(res);
3600
3600
  await res.sequencer.initAsync();
3601
3601
  res.sequencer.addEventListener("stop", () => {
3602
- pxsim.board().bus.queue(music.SEQUENCER_STOP_MESSAGE, this.id);
3602
+ pxsim.board().bus.queue(music.SEQUENCER_STOP_MESSAGE, res.id);
3603
3603
  });
3604
3604
  res.sequencer.addEventListener("state-change", () => {
3605
- pxsim.board().bus.queue(music.SEQUENCER_STATE_CHANGE_MESSAGE, this.id);
3605
+ pxsim.board().bus.queue(music.SEQUENCER_STATE_CHANGE_MESSAGE, res.id);
3606
3606
  });
3607
3607
  res.sequencer.addEventListener("looped", () => {
3608
- pxsim.board().bus.queue(music.SEQUENCER_LOOPED_MESSAGE, this.id);
3608
+ pxsim.board().bus.queue(music.SEQUENCER_LOOPED_MESSAGE, res.id);
3609
3609
  });
3610
3610
  res.sequencer.addEventListener("tick", () => {
3611
- pxsim.board().bus.queue(music.SEQUENCER_TICK_MESSAGE, this.id);
3611
+ pxsim.board().bus.queue(music.SEQUENCER_TICK_MESSAGE, res.id);
3612
3612
  });
3613
3613
  return res.id;
3614
3614
  }