Hi All,
In sln_local2_iot_local_demo the LED colour is controlling using RGB_LED_SetColor() function.In this function there are multiple cases(different pwm values) for each colour.I want to add more colours.I want to control the led colour from hex colour code.I tried to convert the hex code of colour(example RGB(255,255,255)) to PWM value by using the below equation
redPWMval = hex value of red/255*100
greenPWMval = hex value of green/255*100
bluePWMval =hex value of blue/255*100
Then all pwm duty cycle will be updated using the function PWM_UpdatePwmDutycycle().
But I am not getting the colours as expected.Instead of white I am getting yellowish colour.
Is there any method to control RGB LED PWM from HEX code of colours ?