January 2018
Intermediate to advanced
278 pages
5h 13m
English
We use Node.js to develop local AWS Lambda. Firstly, we write the Node.js program with the Raspberry Pi environment. Open the Raspberry Pi Terminal and create a folder called blinking. We will use the node-rpio library to access the Raspberry Pi GPIO. This library can be found at https://github.com/jperkin/node-rpio.
$ npm install rpio
$ sudo cat >/etc/udev/rules.d/20-gpiomem.rules <<EOFSUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio", MODE="0660"EOF