Arduino IDE
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 16: | Line 16: | ||
<source lang="bash"> | <source lang="bash"> | ||
#!/bin/bash | #!/bin/bash | ||
− | |||
cd `$0|rev|cut -d / -f2-|rev` | cd `$0|rev|cut -d / -f2-|rev` | ||
+ | cla=$@ | ||
while [ "$1" != "" ]; do | while [ "$1" != "" ]; do | ||
if [ "`echo $1|cut -b-2`" == "-P" ]; then | if [ "`echo $1|cut -b-2`" == "-P" ]; then |
Revision as of 00:54, 27 March 2010
To use the Arduino IDE on Fedora 12 you must do a few things:
$ yum install uisp avr-libc avr-gcc-c++ rxtx avrdude $ cd <path to arduino>/lib $ rm librxtxSerial.so RXTXcomm.jar $ ln -s /usr/share/java/RXTXcomm.jar $ ln -s /usr/lib/rxtx/librxtxSerial.so $ cd <path to arduino>/hardware/tools $ rm avrdude $ ln -s /usr/bin/avrdude ./avrdude2
Then put the following in ./avrdude
and give it execute permissions
#!/bin/bash cd `$0|rev|cut -d / -f2-|rev` cla=$@ while [ "$1" != "" ]; do if [ "`echo $1|cut -b-2`" == "-P" ]; then serprt=$(echo $1 | cut -b3-) break fi shift done stty hup -F $serprt ./avrdude2 $cla