robertlarue / HAP-NodeJs-Accessories

Accessories I have created for HAP-NodeJs HomeKit Automation
2 stars 0 forks source link

how to use rgb led strip ? #1

Open Maxmudjon opened 7 years ago

robertlarue commented 7 years ago

It depends on the kind of RGB strip you have. If it's an analog strip, then you can control each channel (Red,Green,Blue) individually with three different DimmableLED_accessory.js running. You can write a version of a dimmable LED that incorporates all three channels using similar logic as the code in this tutorial.

If they are digital RGB strips, then you may be better off using an RGB library (e.g. node-pixel for Adafruit Neo-Pixels).