Topic: Slider: negative values, if >100.
I need to use PWM with the slider so i did:
RemoteXY.slider=random(0,100);
I get correctly values from to 0 to 100. When i add:
RemoteXY.slider= map(RemoteXY.slider, 0, 100, 0, 255);
I get negative values. So the RemoteXY.slider variable isn't able to use values greater than 100, in fact passing random(0,255), i have negative values again. I think a good range could be (0,1023) like a real potentiometer.
Thanks