Skip to content

Instantly share code, notes, and snippets.

@RyodoTanaka
Last active March 1, 2016 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyodoTanaka/cbda7f353e6d80b305a7 to your computer and use it in GitHub Desktop.
Save RyodoTanaka/cbda7f353e6d80b305a7 to your computer and use it in GitHub Desktop.
コマンドラインからArduinoの書き込みなどを行う (Arduino-Makefile を使う 編) ref: http://qiita.com/RyodoTanaka/items/49df36f4cd95f8f9e939
;; ----------------------------------------------------------------------------
;; arduino-mode
;; ----------------------------------------------------------------------------
; arduino-mode.elへのパス
(add-to-list 'load-path "arduino-mode.elのあるディレクトリのパス")
; arduino-modeのセット
(autoload 'arduino-mode "arduino-mode" "Arduino editing mode." t)
; 拡張子の関連付け
(setq auto-mode-alist (cons '("\\.\\(pde\\|ino\\)$" . arduino-mode) auto-mode-alist))
;; ----------------------------------------------------------------------------
$ sudo apt-get install arduino-mk
$ sudo apt-get install screen
$ make upload
$ make monitor
git clone https://github.com/RyodoTanaka/Arduino
# Arduinoのボードの種類
BOARD_TAG = uno
# シリアルポートの設定
MONITOR_PORT = /dev/ttyACM0
# ボーレートの設定
MONITOR_BAUDRATE = 9600
# 独自のライブラリの追加
ARDUINO_LIBS +=
# Arduino.mkのインクルード
include /usr/share/arduino/Arduino.mk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment