Documentation of the C api and types

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
Posts: 1
Joined: Thu Feb 21, 2019 10:08 am

Documentation of the C api and types

Post by ingframin » Thu Feb 21, 2019 10:50 am

I am trying to write a C module to ad some custom functionality to micropython on ESP-32.
The biggest problem that I am facing is that I cannot find anywhere where all the types and macros are documented.

Is there any document explaining what the different macros and types are?

Other than this: https://micropython-dev-docs.readthedoc ... odule.html I cannot find anything.
My code is failing silently and without understanding what the micropython specific things do, it is very hard to debug.

Posts: 3
Joined: Sat Jan 26, 2019 6:14 pm

Re: Documentation of the C api and types

Post by Vinci » Mon Mar 25, 2019 1:45 pm

No, there is hardly any documentation about the interaction of MicroPython and C. Your best bet is opening "obj.h" and use whatever you find in there. Starting with line 615 there are object creation functions which you can use to access C objects.

Post Reply