Page 1 of 1

Documentation of the C api and types

Posted: Thu Feb 21, 2019 10:50 am
by ingframin
Hello,
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.

Re: Documentation of the C api and types

Posted: Thu Feb 21, 2019 8:05 pm
by OutoftheBOTS_

Re: Documentation of the C api and types

Posted: Mon Mar 25, 2019 1:45 pm
by Vinci
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.