Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2650

General discussion • Bulding a project for the Pico W

$
0
0
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

Statistics: Posted by ptBauke — Wed May 08, 2024 4:39 pm



Viewing all articles
Browse latest Browse all 2650

Latest Images

Trending Articles



Latest Images