Code: Select all
$ cd ports/unix
$ make USER_C_MODULES=~/src/mymodule CFLAGS_EXTRA=-DMODULE_MYMODULE_ENABLED=1 all
thanks in advance
Jan
Code: Select all
$ cd ports/unix
$ make USER_C_MODULES=~/src/mymodule CFLAGS_EXTRA=-DMODULE_MYMODULE_ENABLED=1 all
At the moment you can't write a module that is half-Python, half-C. (Although see https://github.com/micropython/micropython/pull/5025)jand wrote: ↑Tue Feb 16, 2021 8:52 pmIn addition to the C/C++ code, I need to add some additional Python (glue) code to the module (e.g. a Python class or function). How can this be accomplished (so that the Python code is located together with the rest of the module somewhere below ~/src/mymodule)?