Processing & Arduino
Part 2 Arduino
by Shelandy Ting
powered by Emacs + reveal.js + github
https://github.com/sudar/Arduino-Makefile#usage
https://www.emacswiki.org/emacs/ArduinoSupport
https://wiki.archlinux.org/index.php/arduino
Windows and OSX have a similar prcoess of installation, most on specify some files
RPM,...
pip install pyserial
# or if you prefer easy_install
easy_install -U pyserial
change three lines of in your Aduino.mk (e.g., /usr/local/Arduino-Makefile/Arduino.mk) around line 50~60, add the following
AVR_TOOLS_DIR = /usr
ARDUINO_DIR = /usr/local/arduino-1.6.12
ARDMK_DIR = /usr/local/Arduino-Makefile
export ARDUINO_DIR=/usr/local/arduino-1.6.12
export ARDMK_DIR=/usr/local/Arduino-Makefile
export AVR_TOOLS_DIR=/usr/include
ARDUINO_DIR=../../../../../Program\ Files\ \(x86\)/Arduino
BOARD_TAG = uno #= mega2560 if your board is Mega
MONITOR_PORT = /dev/ttyACM0 # you shoukld able to find this under your device manager
ARDUINO_LIBS = Wire SoftwareSerial # put whatever libraries you need over there
include /usr/local/Arduino-Makefile/Arduino.mk
AVR_TOOLS_DIR= /usr
AVRDUDE = /usr/bin/avrdude
AVRDUDE_CONF = /etc/avrdude/avrdude.conf
(add-to-list 'auto-mode-alist '("\\.ino\\" . arduino-mode))
(autoload 'arduino-mode "arduino-mode" "Arduino editing mode." t)
need a authoring tool to make up here as the end: