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を使用し、回路図は以下のようになります。

コードはLチカと全く同じ hello.js をそのまま使用できます。

  • node hello.js と入力してENTERキーを押します

回路