microbit-more / mbit-more-v2

Full-functional extension of micro:bit for Scratch3
MIT License
32 stars 21 forks source link

web serial connecting problem #17

Closed madfire closed 1 year ago

madfire commented 2 years ago

when I connected with usb, chrome coud read the port, but it snapped then.

madfire commented 2 years ago

plus, I also had problems with the block "when data with label received", it didn't work.

yokobond commented 2 years ago

The serial port feature is not yet released because it crashes when the port is closed. You can try the serial port feature by modifying the following part of pxt-mbit-more-v2 and building your own. https://github.com/microbit-more/pxt-mbit-more-v2/blob/c6e7c853e6e6198f792f7e6a2ef7dafedebc3831/MbitMoreCommon.h#L8

yokobond commented 2 years ago

The label in the block [ When the label (label-01) data is received from micro:bit] must exactly match the label in MakeCode's [send text "data" with label "label-01"] to work. Please check the labels again, and if you still have problems, post it as a separate issue.

yokobond commented 1 year ago

The serial port was incorrectly closed. This was fixed at 94f37a5f38f361a25a7363e8414efe7a42d89766 and released Release 0.2.5 · microbit-more/mbit-more-v2.

madfire commented 1 year ago

有难う 御座います!It helps a lot, thank u so much