What are the open source C++ library for microbit?

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
zfm076
Posts: 16
Joined: Mon Dec 30, 2019 8:06 am

What are the open source C++ library for microbit?

Post by zfm076 » Tue Jan 07, 2020 10:36 am

Hi,Boy.I don't want to use the micropython library for microbit. Because micropython takes up a lot of space. So,now I'm looking for some C++ libraries for microbit . Do you have any recommendations? :lol:

lujo
Posts: 24
Joined: Sat May 11, 2019 2:30 pm

Re: What are the open source C++ library for microbit?

Post by lujo » Tue Jan 07, 2020 12:09 pm


zfm076
Posts: 16
Joined: Mon Dec 30, 2019 8:06 am

Re: What are the open source C++ library for microbit?

Post by zfm076 » Wed Jan 08, 2020 7:19 am

lujo wrote:
Tue Jan 07, 2020 12:09 pm
Hi,

Arduino IDE? See https://github.com/sandeepmistry/arduino-nRF5.

lujo
Thanks. The arduino-nRF5 have PIN define file only . I find another Full open source library :https://github.com/lancaster-university/microbit-dal/ Then,Is there any better library than this?

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

Re: What are the open source C++ library for microbit?

Post by jimmo » Sun Jan 12, 2020 11:12 pm

Yes, the microbit-dal from Lancaster is probably a very good starting point.

Really the next step from there is to go directly to either mbed or nrfx, but then you'll be doing everything manually. The microbit-dal is very straightforward to use (especially if you're using it with the mbed tools like yotta).

zfm076
Posts: 16
Joined: Mon Dec 30, 2019 8:06 am

Re: What are the open source C++ library for microbit?

Post by zfm076 » Mon Jan 13, 2020 2:13 am

jimmo wrote:
Sun Jan 12, 2020 11:12 pm
Yes, the microbit-dal from Lancaster is probably a very good starting point.

Really the next step from there is to go directly to either mbed or nrfx, but then you'll be doing everything manually. The microbit-dal is very straightforward to use (especially if you're using it with the mbed tools like yotta).
Yes.I use the microbit-dal a few days,that very good. But I have a problem: What interrupts from the microprocessor can still be used and are not yet occupied by anything from the microbit-dal library? I need to be able to check for events that occur with a rate of 2kHz or I need time interrupt events to do thing,Like Serial port sends data regularly. There seems to be no API in microbit-dal library.

Post Reply