microbit-more / pxt-mbit-more-v2

Full-functional extension of micro:bit for Scratch3
https://microbit-more.github.io/pxt-mbit-more-v2/
8 stars 15 forks source link

"Pin is touched" triggers always, program crashes #6

Open fabianhugo opened 4 months ago

fabianhugo commented 4 months ago

This project is amazing, thank you very much! I was experimenting with the micro-bit more editor and noticed problems the "pin touched" blocks. For example the "When pin <P0/P1/P2> is touched" block triggers always when pins despite the logo (P0-P2) are used, and the program crashes with a 070 error. I used a hex-file generated by the current microbit.makecode.org and the pxt microbit more extension. The crashes don't come up when only the Logo pin is used. The following video shows the behavior.

https://github.com/microbit-more/pxt-mbit-more-v2/assets/32654742/fd98b073-cfaa-400e-852e-5fa0349e10d2

Update:

We found out, that the problem with the crashes does not appear, when the Hex file is generated by Makecode in the pxt-microbit version 5. Therefore I assume that the problem is within this repo and i moved the issue here.