FormPix is a plugin designed for Raspberry Pi to control Neopixel/ws2812 lights for formbar.js.
- Run
npm iin the main folder to install dependencies for both formPix and formPixSim. - If you're on a Raspberry Pi and want to use FormPix, navigate to the
formPixfolder and runnpm i. You may need to usesudodue to library requirements. - Similarly, if you want to use FormPixSim, navigate to the
formPixSimfolder and runnpm i.
- Ensure you are on a Raspberry Pi environment.
- Utilize
sudowith the following commands for FormPix due to library requirements. - Run
node formPix/app.jsto execute FormPix.
- FormPixSim is a simulation of FormPix on a website and can be used on any platform.
- Run
node formPixSim/app.jsto execute the FormPix Simulator.
- npm scripts are tailored for Windows platforms.
- Unfortunately, npm scripts cannot be used with formPix due to npm's inability to operate with sudo. This limitation arises because one of the libraries formPix relies on requires sudo privileges for execution.
npm run testexecutes FormPixSim.npm run devexecutes FormPixSim with nodemon.