Arduino IDE

From Attie's Wiki
Revision as of 17:25, 27 March 2010 by Attie (Talk | contribs)

Jump to: navigation, search

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 `echo $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

If you are programming wirelessly and using serial comms, for some reason you MUST select the same baud rate as the arduino bootloader. ATmega168 uses 9600 ATmega328 uses 57600

Feel free to use this hack:

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, bash, basic4gl, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cobol, cpp, cpp-qt, csharp, css, d, delphi, diff, div, dos, dot, eiffel, fortran, freebasic, genero, gettext, glsl, gml, gnuplot, groovy, haskell, html4strict, idl, ini, inno, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, lotusformulas, lotusscript, lua, m68k, matlab, mirc, mpasm, mxml, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, per, perl, php, php-brief, plsql, powershell, python, qbasic, rails, reg, robots, ruby, sas, scala, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, verilog, vhdl, visualfoxpro, winbatch, xml, xorg_conf, xpp, z80

See also: http://www.arduino.cc/playground/Linux/Fedora

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox