3 ms·
I wonder if or how easy will be to use existing embedded c/c++ libraries e.g arduino libs.
by nazgu1 2y ago
I wonder if or how easy will be to use existing embedded c/c++ libraries e.g arduino libs.
- dejv 2y agoNot sure about Arduino specific code, but including C/C++ is fairly easy. See Swift Embedded Examples [1] (check Sources/Support) [1]: https://github.com/apple/swift-embedded-examples/tree/main/pico-blink https://github.com/apple/swift-embedded-examples/tree/main/p...
- de_aztec 2y agothey even show this in the video, apparently it’s supposed to be straightforward
- tomovo 2y agoI just tried it recently, worked well enough, including support for std vector, string etc. You can loop over std vector items using a standard Swift loop, for example. It´s clear Apple needs and uses this internally too.