For me, the reason to use the SDK instead of the 'Arduino' version is because of the state of many Arduino libraries. They often use 'bit-bang' with delays and/or use the arduino 'String' versions internally. All that does not work well with FreeRTOS and in general the way to write correct code.
Now fortunately I don't need a lot external stuff myself, I just use Serial (NMEA), read the BMP280 sensor, things like that.. For sure using Python would be out of the question...
My approach is to pull any library into my project. Modify the CMakeFile so I can pull it in as an external library. Make a few changes here and there to make it work how I want to work. This sometimes means removing stuff from std into ETL (I use a pretty asome etlcpp library https://www.etlcpp.com) change some 'ints' to (u)nintXX_t version to save some space.
I occasionally look at how things are done in a other library.. For example Instead of using RadioLib I directly use the SX1262 headers that came with Semtech, they are very easy to add and I currently don't need a wrapper around a wrapper.. Who knows..
However, I would for sure look at your own usecase. If you want to support as much as hardware as possible perhaps it's better to use the Arduino library and Arduino wrapper on the PICO, and just move on?
Now fortunately I don't need a lot external stuff myself, I just use Serial (NMEA), read the BMP280 sensor, things like that.. For sure using Python would be out of the question...
My approach is to pull any library into my project. Modify the CMakeFile so I can pull it in as an external library. Make a few changes here and there to make it work how I want to work. This sometimes means removing stuff from std into ETL (I use a pretty asome etlcpp library https://www.etlcpp.com) change some 'ints' to (u)nintXX_t version to save some space.
I occasionally look at how things are done in a other library.. For example Instead of using RadioLib I directly use the SX1262 headers that came with Semtech, they are very easy to add and I currently don't need a wrapper around a wrapper.. Who knows..
However, I would for sure look at your own usecase. If you want to support as much as hardware as possible perhaps it's better to use the Arduino library and Arduino wrapper on the PICO, and just move on?
Statistics: Posted by rvt — Sat Apr 13, 2024 10:44 am