Giter Site home page Giter Site logo

kyeshmz / fadecandy-raspi-node Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 39.21 MB

Starting template to control fadecandy server on Raspberry Pi 4 using p5js and nodejs

License: MIT License

JavaScript 61.33% TypeScript 19.81% Max 18.86%
fadecandy nodejs p5 raspi raspi4 raspberrypi led ws2812b ws2812x

fadecandy-raspi-node's Introduction

This is a starting template to control Fadecandy on a Raspberry Pi 4B.

There are some predependencies to make the node-canvas work on the Raspberry Pi 4B.

Per the node-canvas wiki, they are as below.

sudo apt-get update
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

# then we can install the canvas module

npm install canvas

Because this is intended to work as a headless alternative to p5, it needs to be run with CommonJS in mind and also the setupWindow function must be run before importing p5 or else errors will occur about no window context.

Pm2

This uses pm2 slack integration change the SLACKURL in the pm2:install config inside of package.json

License

MIT

Credits

Big Shoutout to dipamsen for the gist to make node p5 work You can see his explanation here

fadecandy-raspi-node's People

Contributors

kyeshmz avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.