All Projects → shepting → raspberry-swift

shepting / raspberry-swift

Licence: Apache-2.0 license
Swift on Raspberry Pi

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
python
139335 projects - #7 most used programming language

raspberry-swift

Image

Swift 3.1 app on the Raspberry Pi 3

asciicast

Logging In & Building

This command will search the local network by MAC address and find ones that belong to Raspberry Pi devices.

sudo arp-scan --localnet --interface=en0 | grep b8:27:eb:

To log in, you will likely need to pass along the username, and (in my case) pass along the particular RSA key you have set up on the device.

ssh [email protected] -i ~/.ssh/raspberry_rsa

Then to build and run the app:

cd tank
swift build
sudo ./.build/debug/RaspberrySwift

Installing Swift

cd /
wget https://github.com/shepting/raspberry-swift/blob/master/archives/swift-3.1.1-RPi23-1604.tgz
sudo tar -xvzf swift-3.1.1-RPi23-1604.tgz
sudo apt install clang
sudo apt install libpython3.5-dev
sudo apt install libcurl3

Hardware Used

Talking Over I2C

Sample Python configuration and bit shifting: https://github.com/switchdoclabs/SDL_Pi_Grove4Ch16BitADC/blob/58e2a8e32b03d2c463bde59821d210b16a792ad1/Adafruit_ADS1x15/Adafruit_ADS1x15.py#L266-L268

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].