Skip to content

shepting/raspberry-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 steven@172.20.10.6 -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

About

Swift on Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published