I'm making a line following robot with the Pico W and I want to switch from the Arduino IDE and start using the Pico SDK, but when I was doing some tests, I discovered something that is bugging me: when I build the project with only a main file the code runs 300x faster than the same code, but this time using .c and .h files for the functions.
Here is the code I was using for my test: https://github.com/kimauanisso/pico_SDK
I want to know if I'm doing something wrong and if so, what I need to change, because I can't understand why the code would be so much slower when using header file.
Thanks in advance
Here is the code I was using for my test: https://github.com/kimauanisso/pico_SDK
I want to know if I'm doing something wrong and if so, what I need to change, because I can't understand why the code would be so much slower when using header file.
Thanks in advance
Statistics: Posted by ptBauke — Wed May 08, 2024 4:39 pm