basic LED interactions on a raspberry pi
Follow the base setup of the johnny-five LED example
Make sure you do these steps on a raspberry pi
- install prerequisites
sudo apt-get install wiringpi
(might crash if you don't have git) - install dependencies (
yarn
seems to cause errors, usenpm install
instead) - run the code with root priviledges
sudo `which node` index
- see your LED blinking
You can also use remote-code if you don't want to work manually on your pi.