Our great sponsors
-
node-pixel
Library for using addressable LEDs (such as NeoPixels/WS2812) with Firmata and JohnnyFive
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Before running this code, you need to install the right firmware onto the board. To do this, you can follow the instructions on the node-pixel repository.
If you’re interested in looking at the Arduino code, you can find it in my GitHub repository.
I decided to use the Johnny-Five JavaScript framework for this. After installing it , I started by declaring a few variables and instantiating the transmitter board.