Multiplication and Divide in Rules ESPeasy
Posted: 07 May 2020, 00:01
Hi Everyone,
I try to transform 0 to 255 in 0 to 1023 for RGB Ledstrip but it doesn't work. Can you tell me why ?
Regards,
Bypbop
I try to transform 0 to 255 in 0 to 1023 for RGB Ledstrip but it doesn't work. Can you tell me why ?
Code: Select all
on RGB do
PWM,05,%eventvalue1%*1023/255
PWM,12,%eventvalue2%*1023/255
PWM,13,%eventvalue3%*1023/255
endon
Bypbop