[Microbit-Python] Adding an extra C module to microbit: howto?
Radomir Dopieralski
microbit at sheep.art.pl
Thu Sep 15 04:41:28 EDT 2016
Hi Giovani,
there isn't much documentation, the source files and the "sample"
branches at https://github.com/dhylands/micropython/tree/c-sample2 are
the best sources of knowledge so far. Because of that I started an
unofficial developer documentation at
http://micropython-dev-docs.rtfd.io/ and I have recently added a
chapter about adding your own module -- maybe that will be helpful.
If you see any mistakes or opportunity for improvement, or want to add
something, don't hesitate to make a pull request. Note however, that
this is about general micropython, and the micro:bit port may have some
special cases.
On Thu, 15 Sep 2016 10:34:33 +0200
Giovanni Giorgi <jj at gioorgi.com> wrote:
> Hi all,
>
> I'd like to try to add a new module to microbit micropython project.
>
> I have digged a bit on the source, looking how the audio module is
> defined.
>
> I only need only to touch the following files?
>
> source/microbit/mod<mymodule>.c
>
> inc/genhdr/qstrdefs.generated.h
>
> inc/microbit/mpconfigport.h
>
> inc/microbit/qstrdefsport.h
>
> Do you have a small guide on how to do it?
> I have also downloaded the official micropython project but I have no
> luck (perhaps I missed something...).
--
Radomir Dopieralski
--
Radomir Dopieralski
More information about the Microbit
mailing list