/swift-pico-w-hello

Primary LanguageSwiftApache License 2.0Apache-2.0

Swift Embedded on SuperCon 8 Badge

This code builds from the pico-w-blink-sdk example in the swift-embedded-examples repo, but using the CMakeLists.txt from apple/swift-embedded-examples#63 which at time of writing was not on main.

It adds more features piece by piece until is has a similar but not identical behavior to the default firmware on the badge.

To Use

Each numbered folder is its own project. Before compiling any of them:

Things to check if the build.sh in any folder doesn't work:

  • change the toolchain location in build.sh to the actual nightly being used.
  • make sure the pico SDK location in build.sh is the same as your pico SDK location.
  • attach the pico-w to the computer holding down the BOOTSEL and confirm the name of the volume is the same as the one in the build.sh
  • set the permissions on the build.sh script (chmod 755 build.sh)and run as current shell . ./build.sh

Useful Links

Fixing Posix Memalign Issue Notes

Whats the deal:

In the end used the function in the below example. In the Badge example it lives in LanguageSupport.swift

TODO: https://github.com/sparkfun/sparkfun-pico