ajfisher / node-pixel

Library for using addressable LEDs (such as NeoPixels/WS2812) with Firmata and JohnnyFive
MIT License
276 stars 70 forks source link

feat: breaking down, moving to buffer from #188

Closed hweeks closed 4 years ago

hweeks commented 4 years ago

What Does This Do?

This address two core problems:

  1. break out the constants in to a file to allow sharing between multiple files
  2. break the strip and pixel apart
  3. removes deprecated new Buffer calls

Why break them apart?

The single file was very functional, but I was finding it hard to debug an issue I was seeing. I was hoping to also use this to eventually write smaller and more functional tests and simpler features additions.

What else is coming?

There are 3 more PRs I will be opening. They complete all of the work that was in #186