Installing Swift 3.0 developer preview on a Raspberry Pi 2/3 with Ubuntu 16.04
Fetching the Swift ARM team's daily build and extracting it into a Raspberry Pi running Ubuntu 16.04, ready to drive the GPIO pins from Swift.
We have a sexy Raspberry Pi 2/3 with Ubuntu 16.04 installed, like explained here. Now we want to install Swift 3.0 development preview into it.
Luckily, the Swift ARM team has setup a Jenkins daily build. We just need to fetch the archive and extract it.
Open the Swift ARM Jenkins page and copy the url of the build (something like http://swift-arm.ddns.net/job/Swift-3.0-Pi3-ARM-Incremental/), then replace it into the following commands.
cd ~
wget http://ARCHIVE-NAME.tar.gz
sudo tar -xzpf ARCHIVE-NAME.tar.gz -C /
With the latest command we’ve extracted the archive in the root directory.
Now do you want to control the Raspberry Pi GPIOs pins with Swift? Go to then next article.
Read next
Control the Raspberry Pi 2/3 GPIO pins with Swift 3.0 on Ubuntu 16.04
Pin numbers, a breadboard LED on GPIO4, WiringPi to prove the pin responds, and then turning it on and off from Swift 3.0 on Ubuntu 16.04.
How to setup your Raspberry Pi 2/3 with Ubuntu 16.04, without cables (headlessly)
Flashing Ubuntu 16.04 server minimal onto a Raspberry Pi 2 or 3 and bringing it up over ssh only, which vanilla Ubuntu will not do on its own.
Using Swift to control the Raspberry Pi GPIO pins and turn an LED on
Reading the GPIO pin numbering, wiring an LED to GPIO4 on a breadboard and switching it on from Swift running on the Raspberry Pi itself.