[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
[pi8] Installing Cylon.js for Raspberry Pi
- Update your raspi installation
- open a console window and execute
sudo apt-get update
sudo apt-get upgrade
- Install last node.js and npm (node package manager)
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs npm
- Install cylon.js and cylon-raspi
sudo npm install cylon cylon-raspi cylon-gpio cylon-i2c
More installation procedures
- Connecting to Raspberry Pi GPIO
- Execute
sudo usermod -G gpio pi
- needs more ??? (See Cylon-raspi NPM page)
- Enabling the Raspberry Pi i2c on Raspbian
sudo apt-get install i2c-tools
- run sudo raspi-config
- choose "Update"
- choose "Interfacing Options"/"I2C"/"enable"
- Enabling PWM output on GPIO pins
- You need to install and have pi-blaster running in the raspberry-pi
- See Cylon-raspi NPM page