Last active
March 1, 2016 19:05
-
-
Save RyodoTanaka/cbda7f353e6d80b305a7 to your computer and use it in GitHub Desktop.
コマンドラインからArduinoの書き込みなどを行う (Arduino-Makefile を使う 編) ref: http://qiita.com/RyodoTanaka/items/49df36f4cd95f8f9e939
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ---------------------------------------------------------------------------- | |
;; 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)) | |
;; ---------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install arduino-mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make monitor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/RyodoTanaka/Arduino |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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