Check the pigpio¶
pigpio is a module used to control Raspberry Pi GPIO channels. This package provides some methods to control GPIO on Raspberry Pi. For examples and documentation, please visit: https://www.npmjs.com/package/pigpio.
Enter the following command to install the pigpio library.
npm install pigpio
Check if the library is installed successfully, change the directory and enter nodejs:
cd /home/pi/davinci-kit-for-raspberry-pi/nodejs nodejs
Then enter require(‘pigpio’):
If the above screen appears, the library installation is successful.
If you want to exit node CLI, please press Ctrl+C twice.