Page 2 of 2

Re: BBC micro:bit v2

Posted: Sat Oct 24, 2020 6:20 am
by nrD
Oh that await would be great. I'm assuming it will basically sleep the thread till the event occurs?

Re: BBC micro:bit v2

Posted: Sat Oct 24, 2020 6:21 am
by nrD
jimmo wrote:
Thu Oct 22, 2020 11:57 pm

Yep. I hope so.

It would be also good to investigate the capabilities of the DAPLink chip on the v2... now that it's connected via I2C to the nRF (in addition to UART, where the the v1 only had the UART), I wonder what the possibilities are for doing USB device emulation (HID, MIDI, etc).
MIDI would be really useful

Re: BBC micro:bit v2

Posted: Sat Oct 24, 2020 6:58 pm
by scruss
If the new controller supports HID, that would make my day

Re: BBC micro:bit v2

Posted: Sun Oct 25, 2020 11:07 pm
by jimmo
nrD wrote:
Sat Oct 24, 2020 6:20 am
Oh that await would be great. I'm assuming it will basically sleep the thread till the event occurs?
Yep!

There's single threads, but the asyncio scheduler gives you co-operatively scheduled "tasks". And tasks can await (either on an event or outright sleeping) while other tasks are still running.