Implementing a C function that takes a Python function as argument

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Turbinenreiter
Posts: 255
Joined: Sun May 04, 2014 8:54 am

Re: Implementing a C function that takes a Python function as argument

Postby Turbinenreiter » Fri Jan 06, 2017 3:56 pm

Thanks again for pointing me in the right direction. I ended up using get_array, which works with bot list and tuples.

I can now take all types of arguments (but only 0 or 1) and return all types as well as arrays of all types.
At this point, I got everything I need for my proof of concept. I'm not sure how my approach can scale to the flexibility the dbus-interface has.


Return to “General Discussion and Questions”

Who is online

Users browsing this forum: No registered users and 5 guests