Page 1 of 1

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

Posted: Tue Jan 07, 2020 10:36 am
by zfm076
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:

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

Posted: Tue Jan 07, 2020 12:09 pm
by lujo

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

Posted: Wed Jan 08, 2020 7:19 am
by zfm076
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?

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

Posted: Sun Jan 12, 2020 11:12 pm
by jimmo
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).

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

Posted: Mon Jan 13, 2020 2:13 am
by zfm076
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.