jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.78k stars 622 forks source link

C++ Wrapper For rpi_ws281x #412

Open Romonaga opened 4 years ago

Romonaga commented 4 years ago

Not where to ask this, so I hope no one take issue. If this is not the proper spot for this, please remove.

I noticed in the read-me, that several different bindings are listed. However, I see no c++ "binding", yes, yes, I know who writes c++ code anymore. My wrapper is very much like other libs in naming convention as well as what it can support. With this lib, you can easily draw pixel art. I use this in a much large project, and just wanted to share this lib with any other dinosaurs that still program in c, c++.

Here are some of the features.

  1. Support for multi-channel (still testing)

  2. Support for many different Matrix's. Once you know the starting point, and let the lib know the orientation, it will insure row 0, column zero is always where it should be. Anyone who has played with these matrix's or made your own, know what a pita it can be to correct for. This support is built in, you tell it the orientation, and row, column, and you don't need to even think about it again.

  3. Color encoding decoding

I would like it to ask if you would consider adding it to your read-me.

https://github.com/Romonaga/Ws2811Wrapper