microbit-foundation / microbit-swift-playgrounds

We've built a Swift Playground that lets you program the micro:bit. This also includes a Swift API for interacting with the micro:bit.
https://microbit.org/guide/swift-playgrounds/
Other
20 stars 8 forks source link

Mac App: Code does not run on micro:bit #27

Closed microbit-mark closed 4 years ago

microbit-mark commented 4 years ago

Describe the bug A clear and concise description of what the bug is. I can pair, but not run code on the micro:bit from the Swift app available in the Mac App store

To Reproduce Steps to reproduce the behavior: eg.

  1. Install swift from Mac App store
  2. Install hex file as per https://microbit.org/guide/swift-playgrounds/
  3. Pair micro:bit, device pairs, but pairing pattern remains on screen
  4. Try to run code, nothing happens

Also tried this in no-pairing mode

Expected behavior Micro:bit should run code

Device info

Mac Catalina 10.15.3 micro:bit 1.3 with firmware 0253

microbit-mark commented 4 years ago

@gary-atkinson can you check this out and see if you can reproduce?

gary-atkinson commented 4 years ago

Sometimes after pairing, the micro:bit displays a tick (if it hasn't paired with the device before?) and sometimes the pattern just remains. Can @jaustin comment? In either case you need to reset the micro:bit before the playground will connect. You may need to tap the Connect button in the top right of the live view after resetting the micro:bit.

Does the micro:bit still not connect or run the code after following the above?

microbit-mark commented 4 years ago

Thanks Gary. Resetting the micro:bit first threw a 020 eror, but a subsequent reset allowed me to connect and then another 020 error. I think this is a separate issue though. As is the tick vs pattern

I think it wasn't obvious to me to reset as I've recently been using the micro:bit Android app, which requires you to re-enter pairing mode to flash, so i'm probably not the typical audience.

Closing, we can open other issues about 020 and tick vs pair