Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

Project skeleton for developing with the Pi4J library on the Raspbery Pi using Scala 2.10 and SBT.

Notifications You must be signed in to change notification settings

runeflobakk/pi-workshop-sbt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scala+SBT Raspberry Pi project skeleton

This is a simple project skeleton for developing with the Pi4J library on the Raspbery Pi using Scala 2.10 and SBT.

Building and running

Running sbt assembly will create a single self-executing JAR which contains the required libraries for interfacing with the Pi hardware, in particular its GPIO pins. The resulting JAR can be SCPed to the Pi and run with sudo java -jar pi-workshop.jar (the sudo is needed for the required priviledges to use the Pi hardware).

you@your-machine $ sbt assembly
you@your-machine $ scp target/scala-2.10/pi-workshop.jar [email protected]:~
you@your-machine $ ssh [email protected]              #replace with IP for your Pi

pi@raspberrypi ~ $ sudo java -jar pi-workshop.jar

About

Project skeleton for developing with the Pi4J library on the Raspbery Pi using Scala 2.10 and SBT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages