====== Firmware Installation ======

===== Table of Contents =====
  - [[firmware]] **Current section**
  - [[battery]]
  - [[arm]]
  - [[leg]]
  - [[head]]
  - [[body]]
  - [[merge]]
  - [[cover]]
  - [[tune]]

Next > [[battery]]
----

===== Preliminary Arrangements =====
PLEN2のファームウェアを書き込むためには、[[https://www.arduino.cc/en/Main/Software|Arduino IDE]] (**arduino.cc**作成のもの) **ver.1.6.0以降**が必要です。
事前にダウンロード,およびインストールをお願いいたします。

==== How to Download the Arduino IDE ====
Arduino IDEのダウンロードページへアクセスし、お使いの環境を選択します。

{{:tutorials:plen2:firmware:00_choose_f.png?direct}}


**"JUST DOWNLOAD"**と書かれた部分をクリックします。(寄付は任意のため、選択不要です。)

{{:tutorials:plen2:firmware:00_download_f.png?direct}}


===== Installation Procedure =====
[[https://github.com/plenprojectcompany/PLEN2|"PLEN2"]]リポジトリをダウンロードします。

{{:tutorials:plen2:firmware:01_download_f.png?direct}}


"firmware.ino" ("/arduino/firmware/"ディレクトリ内にあります) をArduino IDEから開きます。

{{:tutorials:plen2:firmware:02_open_f.png?direct}}


ターゲットボードとして"Arduino/Genuino Micro"を選択します。

{{:tutorials:plen2:firmware:03_choose_f.png?direct}}


ファームウェアを転送するために、適切なポートを選択します。
**(ポート名はユーザの環境ごとに異なります。)**

{{:tutorials:plen2:firmware:04_take_f.png?direct}}


アップロードボタンをクリックします。

{{:tutorials:plen2:firmware:05_upload_f.png?direct}}

===== Tips =====
もしファームウェアをPLEN1.4またはPLEN2 developer editionにインストールしたい場合、
下記の解説を参考にコードを少し編集する必要があります。

また作業に入る前に、//[[https://github.com/plenprojectcompany/plen-Firmware_Arduino/blob/master/firmware/BuildConfig.h|BuildConfig.h]]//
を開いておいてください。

==== How to Apply the Firmware to PLEN1.4 ====
PLEN1.4にファームウェアを適用するにあたり、
[[https://github.com/plenprojectcompany/plen-Firmware_Arduino/blob/master/firmware/BuildConfig.h#L21|第21行]]と
[[https://github.com/plenprojectcompany/plen-Firmware_Arduino/blob/master/firmware/BuildConfig.h#L30|第30行]]を
編集する必要があります。

{{:tutorials:plen2:firmware:02.5_edit_f.png?direct}}

==== How to Apply the Firmware to Developer Edition ====
PLEN2 developer editionにファームウェアを適用するにあたり、
[[https://github.com/plenprojectcompany/plen-Firmware_Arduino/blob/master/firmware/BuildConfig.h#L38|第38行]]を
編集する必要があります。

{{:tutorials:plen2:firmware:02.5_edit_developer_f.png?direct}}

----
Next > [[battery]]