hello,
I am trying to write my own driver at C level.
I want to pass a char pointer but I could not find a suitable micropython function.
for float mp_obj_get_float()
for int mp_obj_get_int()
for char* ???
Best Regards
in Driver Writing getting char pointer
Re: in Driver Writing getting char pointer
There is no such thing like a char * in (micro)python. The address of something is usually a plain int.
You might want to acces a bytes or string object.
Check out any functios (e.g. in ports/*/*.c) which get a string or bytes object.
You might want to acces a bytes or string object.
Check out any functios (e.g. in ports/*/*.c) which get a string or bytes object.
A few hours of debugging might save you from minutes of reading the documentation!
My repositories: https://github.com/karfas
My repositories: https://github.com/karfas