I am trying to control some addressable LEDs using a web interface hosted by my ESP32. I am stuck on finding a way to convert the color code from HTML color input (ex. #123456) into a long int (ex. 0x123456) for the LEDs to accept. Any suggestions?
I just threw an example color code in there, so I'm not sure what color that is. The thing I'm having trouble with is converting the format the number is in.