potentioValue = map(potentioValue, 0,1023,0,255); //as we know LED’s brightness ranges from 0 – 255
Suppose the to range was 255 to 0, instead. What would that result in the LED (or motor, since you don't have an LED) doing?
potentioValue = map(potentioValue, 0,1023,0,255); //as we know LED’s brightness ranges from 0 – 255
Suppose the to range was 255 to 0, instead. What would that result in the LED (or motor, since you don't have an LED) doing?