Is it possible to use the Pico SDK APIs in the Arduino IDE ?
I've tried to compile this bit of code but without success. I get the following error:
In file included from /Users/geoffraydoignon/Documents/Arduino/avirer/avirer.ino:1:0:
/Users/geoffraydoignon/Library/Arduino15/packages/arduino/hardware/mbed_rp2040/2.7.2/cores/arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/common/pico_stdlib/include/pico/stdlib.h:11:10: fatal error: pico/stdio.h: No such file or directory
#include "pico/stdio.h"
^~~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Raspberry Pi Pico.
Both cores have pros and cons. For my own projects, I have been using the mbed core. I often need stdlib.h for changing clock speeds but for some reason, this is not in the mbed core and no one is changing that. the workaround is to put these functions at the top of your script. Other than this stdlib.h offers nothing else other than including some other headers. Therefore you will need to add the appropriate headers for your code yourself
The mBed core seems to run about 10x slower than the Philhower core for some trivial functions...
It's the non-trivial functions that are more important, of course, but that's a pretty depressing multiplier...