Search found 1 match

by vtu93
Wed Dec 19, 2018 6:59 am
Forum: Development of MicroPython
Topic: returning a list from C module
Replies: 1
Views: 309

returning a list from C module

I am trying to convert an array of floats(fft_test->output) into a list that I can return on a C module. I had a look through obj.h and mp_obj_new_bytearray seemed like the best choice. void *fft_output = fft_test->output; mp_obj_t fft_list = mp_obj_new_bytearray(sizeof(fft_output), fft_output); ret...