1
arduino-core for Debian
2
-----------------------
4
N.B. This package has not been widely tested -- your mileage may vary
5
Bug reports welcome :-)
7
This package contains the bare minimum required to program an Arduino
8
using Arduino sketches via the command line by using the included Makefile
9
in this Debian package, an external Makefile, or other build system (e.g.
10
http://code.google.com/p/arscons/)
12
It DOES NOT contain the Java IDE -- if that's want you want you need to
13
install the main arduino package as well (which depends on this one)
19
[This is based on http://mjo.tc/atelier/2009/02/arduino-cli.html]
21
create a new directory, and change to it (the name doesn't matter)
23
mkdir ~/arduino-playpen ; cd ~/arduino-playpen
27
cat > Makefile <<'!====EOF====!'
28
ARDUINO_DIR = /usr/share/arduino
31
#ARDUINO_LIBS = LiquidCrystal
35
ARDUINO_PORT = /dev/ttyUSB*
37
AVRDUDE_ARD_PROGRAMMER = arduino
38
AVRDUDE_ARD_BAUDRATE = 57600
39
#AVRDUDE_ARD_EXTRAOPTS = -F
41
include /usr/share/arduino/Arduino.mk
44
Edit any settings that need to be different if you've got something other than
45
an atmega168, or if your serial port turns out not to be /dev/ttyUSB0.
46
There is more information about the varieties of boards here:
47
/usr/share/arduino/hardware/arduino/boards.txt
48
although it's perhaps best to check the state of the art, here:
49
https://github.com/arduino/Arduino/raw/master/hardware/arduino/boards.txt
53
cp /usr/share/arduino/examples/Digital/Blink/Blink.pde .
55
compile and upload it:
59
make TARGET=Blink upload
61
or do it all at once, thus:
63
make TARGET=Blink all upload
65
If you set the TARGET= string in the makefile, you obviously don't
66
need to keep specifying it.
68
If the upload doesn't work, try unplugging/replugging the Arduino.
70
If avrdude complains about mismatching signatures, and suggests setting -F,
71
try uncommenting the AVRDUDE_ARD_EXTRAOPTS line
73
If avrdude tells you "programmer is not responding" it could well be
74
a baud-rate mismatch. Refer to the boards.txt file(s) mentioned above.
77
Please tell me if this fails for you, and if possible, what you did to
78
the Makefile to make it work.
80
I did consider making a script that would automate the above QuickStart,
81
but I think you're going to want to do it by hand at some point, so you
82
might as well do that from the start. I'm open to persuasion that some
83
sort of script is needed, if only to tell anyone that runs it to read
86
-- Philip Hands <phil@hands.com> Wed, 28 Apr 2010 09:46:10 +0100