Half the battle is getting the Raspberry Pi up and running with Java installed. Once you’ve done that, the rest is pretty simple.
- Firstly Install Rasbian wheezy on your Raspberry Pi.
- Then install Java 8.
- Create somewhere nice for us to work.
mkdir /home/mrn/dev/finch cd /home/mrn/dev/finch
- For the latest version of the Finch development kit go to http://www.finchrobot.com/raspberry-pi. Search for BBTechSoftwareForPi and download it.
- They’ve done that thing where you don’t get a containing folder inside the zip, so we’ll have to make it.
mkdir BBTechSoftwareForPi-9303915 cd BBTechSoftwareForPi-9303915 unzip ../BBTechSoftwareForPi.zip
- Zips don’t hold unix permissions so we’ll have to add execute permissions to anything we want to run.
chmod +x Configure
- We need to run this as
rootbecause it copies libraries into protected places.
- That’s kind of it. Make sure the Finch robot is connected.
- Enter the Java folder
- Compile the sample program
javac -classpath :finch.jar Code/simpleInput/LEDSetter.java
- And run it
java -classpath :finch.jar Code/simpleInput/LEDSetter
No feedback yet
Form is loading...