http://arduino.cc/en/Main/Software
Download the code either by downloading .zip, or using GitHub
https://github.com/ninjablocks/arduino/tree/rewrite
The following libraries need to be added
cd ~/Documents/Arduino/libraries/
ln -s ~/AUTOMATION/arduino-master/aJson aJson
ln -s ~/AUTOMATION/arduino-master/DHT22 DHT22
ln -s ~/AUTOMATION/arduino-master/DMD DMD
ln -s ~/AUTOMATION/arduino-master/I2C I2C
ln -s ~/AUTOMATION/arduino-master/MMA8453Q MMA8453Q
ln -s ~/AUTOMATION/arduino-master/Ninja Ninja
ln -s ~/AUTOMATION/arduino-master/NinjaObjects NinjaObjects
ln -s ~/AUTOMATION/arduino-master/NinjaObjectsPi NinjaObjectsPi
ln -s ~/AUTOMATION/arduino-master/RCSwitch RCSwitch
ln -s ~/AUTOMATION/arduino-master/Sensors Sensors
ln -s ~/AUTOMATION/arduino-rewrite/common common
ln -s ~/AUTOMATION/arduino-rewrite/decoder decoder
ln -s ~/AUTOMATION/arduino-rewrite/encoder encoder
ln -s ~/AUTOMATION/arduino-rewrite/onboard onboard
ln -s ~/AUTOMATION/arduino-rewrite/ports ports
ln -s ~/AUTOMATION/arduino-rewrite/rf rf
ln -s ~/AUTOMATION/arduino-rewrite/serial serial
You have to have the ninjablocks source code in your libraries folder right alongside the symbolic links to the 'libraries' (which you get from the trunk)
You have to have the ninjablocks source code in your libraries folder right alongside the symbolic links to the 'libraries' (which you get from the trunk)
So the folder structure is
/Users/mike/nb/libraries/ajson [symbolic link]
/Users/mike/nb/libraries/common [folder from github]
etc..
And in Arduino, set the 'Sketchbook location' in preferences to /Users/mike/nb, i.e the folder ABOVE the libraries folder...