Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

4.2 GPIOを出力

GPIOの出力はLチカで実験済みですね。そこで今回はモーターを動かしてみましょう。MOSFETを使った回路図は以下のようになります。

GPIO Motor

コードは Lチカと全く同じ(hello.js)を使用して動作可能です。

  • node hello.js ENTERキー

回路について