差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:arduino_ide [2021/12/05 07:45] – [動作確認] ともやん | linux:arduino_ide [2024/04/19 09:59] (現在) – ↷ 移動操作に合わせてリンクを書き換えました。 非ログインユーザー | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ~~CLOSETOC~~ | + | ====== Arduino IDE (Linux) |
| - | ====== Arduino IDE ====== | + | {{:linux:arduino_ide_linux_010.png?470|Arduino IDE Linux 010}}\\ |
| - | {{:linux:arduino_ide_linux_002.png?370|Arduino IDE Linux 002}}\\ | + | |
| + | 本家: [[https:// | ||
| + | |||
| + | [[: | ||
| ===== ダウンロード ===== | ===== ダウンロード ===== | ||
| + | 最新の安定バージョンは、こちらで調べてダウンロードする。\\ | ||
| + | [[https:// | ||
| + | |||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| $ cd ~/work | $ cd ~/work | ||
| - | $ curl -O https:// | + | $ curl -O https:// |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 5208: | 行 5214: | ||
| <WRAP prewrap 100% mincode> | <WRAP prewrap 100% mincode> | ||
| 起動スクリプトの以下の部分をコメントアウトする。\\ | 起動スクリプトの以下の部分をコメントアウトする。\\ | ||
| - | < | + | < |
| #export PATH=" | #export PATH=" | ||
| + | </ | ||
| + | <code autoconf> | ||
| #if [ -x " | #if [ -x " | ||
| # JAVA=$APPDIR/ | # JAVA=$APPDIR/ | ||
| 行 5218: | 行 5226: | ||
| <WRAP prewrap 100% mincode_long> | <WRAP prewrap 100% mincode_long> | ||
| - | < | + | < |
| # | # | ||
| 行 5441: | 行 5449: | ||
| </ | </ | ||
| - | **Pyserial is not installed for / | + | ==== No module named ' |
| + | **Pyserial is not installed for / | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| 行 5631: | 行 5640: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ==== Permission denied: '/ | ||
| + | **/ | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | $ ll / | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | crw-rw----. 1 root dialout 188, 0 12月 5 06:56 <b class=YEL>/ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ユーザーを **dialout** グループに所属させる。\\ | ||
| + | [[linux: | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | $ id tomoyan | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | uid=1000(tomoyan) gid=1000(tomoyan) groups=1000(tomoyan), | ||
| + | </ | ||
| + | <WRAP color_command>< | ||
| + | $ sudo usermod -a -G dialout $USER | ||
| + | $ id tomoyan | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | uid=1000(tomoyan) gid=1000(tomoyan) groups=1000(tomoyan), | ||
| + | </ | ||
| + | </ | ||
| + | ※id コマンドにユーザー名を指定すると、ログインユーザーの状態ではなく現在の設定状態が確認できる。\\ | ||
| + | |||
| + | 再ログインして動作確認を行う。(exec bash –login)\\ | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | $ exec $SHELL -l | ||
| + | $ arduino & | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | Picked up JAVA_TOOL_OPTIONS: | ||
| + | Set log4j store directory / | ||
| + | WARNING: An illegal reflective access operation has occurred | ||
| + | WARNING: Illegal reflective access by processing.app.linux.GTKLookAndFeelFixer (file:/ | ||
| + | WARNING: Please consider reporting this to the maintainers of processing.app.linux.GTKLookAndFeelFixer | ||
| + | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations | ||
| + | WARNING: All illegal access operations will be denied in a future release | ||
| + | 2021-12-05T04: | ||
| + | 2021-12-05T04: | ||
| + | 2021-12-05T04: | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 以下のコードをコピペしてメニュー [スケッチ] - [マイコンボードに書き込む] を実行する。\\ | ||
| + | <WRAP prewrap 100% mincode> | ||
| + | <code c> | ||
| + | void setup() { | ||
| + | // put your setup code here, to run once: | ||
| + | Serial.begin(9600); | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | // put your main code here, to run repeatedly: | ||
| + | Serial.println(" | ||
| + | delay(1000); | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 書き込みが完了したら、メニュー [ツール] - [シリアルモニタ] で **Haruo World!** が 1秒おきに表示されていることを確認する。はるお?\\ | ||
| + | {{: | ||
| ===== 参考文献 ===== | ===== 参考文献 ===== | ||
| 行 5637: | 行 5715: | ||
| ==== 付録 ==== | ==== 付録 ==== | ||
| [[tw> | [[tw> | ||
| + | [[tw> | ||