BBC micro:bit v2

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
nrD
Posts: 6
Joined: Wed Oct 21, 2020 12:30 am

Re: BBC micro:bit v2

Post by nrD » 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?

nrD
Posts: 6
Joined: Wed Oct 21, 2020 12:30 am

Re: BBC micro:bit v2

Post by nrD » Sat Oct 24, 2020 6:21 am

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

scruss
Posts: 17
Joined: Sat Aug 12, 2017 2:27 pm

Re: BBC micro:bit v2

Post by scruss » Sat Oct 24, 2020 6:58 pm

If the new controller supports HID, that would make my day

User avatar
jimmo
Posts: 2015
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: BBC micro:bit v2

Post by jimmo » Sun Oct 25, 2020 11:07 pm

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.

Post Reply