Permalink
Browse files

Add arduino stuff.

  • Loading branch information...
1 parent c43248a commit d4bf54c8b8bc9ad5ad40224d859be06c7e322df2 Gabe Berke-Williams committed May 13, 2012
Showing with 2,183 additions and 1 deletion.
  1. +1 −0 Makefile
  2. +2 −0 arduino/Arduino-Makefile/.gitignore
  3. +55 −0 arduino/Arduino-Makefile/README.md
  4. +693 −0 arduino/Arduino-Makefile/arduino-mk/Arduino.mk
  5. +502 −0 arduino/Arduino-Makefile/arduino-mk/licence.txt
  6. +261 −0 arduino/Arduino-Makefile/bin/ard-parse-boards
  7. +115 −0 arduino/Arduino-Makefile/bin/ard-reset-arduino
  8. +53 −0 arduino/Arduino-Makefile/examples/AnalogInOutSerial/AnalogInOutSerial.ino
  9. +5 −0 arduino/Arduino-Makefile/examples/AnalogInOutSerial/Makefile
  10. +19 −0 arduino/Arduino-Makefile/examples/Blink/Blink.ino
  11. +6 −0 arduino/Arduino-Makefile/examples/Blink/Makefile
  12. +65 −0 arduino/Arduino-Makefile/examples/BlinkWithoutDelay/BlinkWithoutDelay.ino
  13. +5 −0 arduino/Arduino-Makefile/examples/BlinkWithoutDelay/Makefile
  14. +31 −0 arduino/Arduino-Makefile/examples/Fade/Fade.ino
  15. +5 −0 arduino/Arduino-Makefile/examples/Fade/Makefile
  16. +58 −0 arduino/Arduino-Makefile/examples/HelloWorld/HelloWorld.ino
  17. +5 −0 arduino/Arduino-Makefile/examples/HelloWorld/Makefile
  18. +5 −0 arduino/Arduino-Makefile/examples/WebServer/Makefile
  19. +82 −0 arduino/Arduino-Makefile/examples/WebServer/WebServer.ino
  20. +5 −0 arduino/Arduino-Makefile/examples/master_reader/Makefile
  21. +32 −0 arduino/Arduino-Makefile/examples/master_reader/master_reader.ino
  22. +5 −0 arduino/Arduino-Makefile/examples/toneMelody/Makefile
  23. +95 −0 arduino/Arduino-Makefile/examples/toneMelody/pitches.h
  24. +49 −0 arduino/Arduino-Makefile/examples/toneMelody/toneMelody.ino
  25. +28 −0 zsh/arduino.zsh
  26. +1 −1 zshrc
View
@@ -0,0 +1 @@
+EOL
@@ -0,0 +1,2 @@
+*.o
+build-cli
@@ -0,0 +1,55 @@
+# A Makefile for Arduino Sketches
+
+This is a very simple Makefile which knows how to build Arduino sketches.
+
+Until March 2012, this was simply posted on my website where you can
+still find [what
+documentation](http://mjo.tc/atelier/2009/02/arduino-cli.html
+"Documentation") exists.
+
+If you're using Debian or Ubuntu, you can find this in the
+arduino-core package.
+
+# Important Changes, 2012-04-29
+
+I've rejigged the path calculations so that:
+
+1. Few, if any paths, need to specified in the project specific Makefiles.
+
+1. The paths can be grabber from the environment e.g. set up in a user's .bashrc.
+
+1. It should be easier to move between e.g. Mac and Linux.
+
+I'm indebted to Christopher Peplin for making me think about this, and indeed for
+contributing code which did similar things in different ways.
+
+The upshot of all this is that you'll need to set up some variables if you want
+this to work:
+
+On the Mac you might want to set:
+
+ ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
+ ARDMK_DIR = /usr/local
+
+On Linux, you might prefer:
+
+ ARDUINO_DIR = /usr/share/arduino
+ ARDMK_DIR = /usr/local
+ AVR_TOOLS_DIR = /usr
+
+The Makefile also delegates resetting the board to a short Perl program.
+You'll need to install Device::SerialPort to use it though. On Debian or
+Ubuntu do
+
+ apt-get install libdevice-serial-perl
+
+On other systems
+
+ cpanm Device::SerialPort
+
+## User Libraries
+
+In order to use Arduino libraries installed in the user's sketchbook folder (the
+standard location for custom libraries when using the Arduino IDE), you need to
+set the `ARDUNIO_SKETCHBOOK` variable to point to this directory. By default it
+is set to `$HOME/sketchbook`.
Oops, something went wrong.

0 comments on commit d4bf54c

Please sign in to comment.