convert hexa to pwm values
Posted: 12 Sep 2019, 05:44
Hello all,
I'm working an a led ribbon system that will communicate with my home automation system (Jeedom via generic HTTP).
The home automation system can easily populate colors code (RGB) in hexa, e.g. #FFFFFF. I want the espeasy to read the code directly.
Is there a formula (not listed here : https://www.letscontrolit.com/wiki/inde ... asyFormula) that can convert Hex --> decimal ?
Is there a function to slide the code in 3 parts to work on the channel (RGB) independently ?
Any help is appreciated.
Thanks
I'm working an a led ribbon system that will communicate with my home automation system (Jeedom via generic HTTP).
The home automation system can easily populate colors code (RGB) in hexa, e.g. #FFFFFF. I want the espeasy to read the code directly.
Is there a formula (not listed here : https://www.letscontrolit.com/wiki/inde ... asyFormula) that can convert Hex --> decimal ?
Is there a function to slide the code in 3 parts to work on the channel (RGB) independently ?
Any help is appreciated.
Thanks