I wanna use a POT to control the time of a certain function and for the life of me i can't work out how to get the POT to control the time could someone try to explain it to me (no code if you can help it)
Note; already read the "BlinkWithoutDelay" just wanna adapt it slightly
The analogRead will return a value in the range 0 .. 1023.
If this isn't a convenient range of values, you could use the "map" function to get it to more convenient units, or, as you did in your LED dimmer, just use simple arithmetic.
Plug the resulting value into the "interval" variable in blink-without-delay.
AWOL:
The analogRead will return a value in the range 0 .. 1023.
If this isn't a convenient range of values, you could use the "map" function to get it to more convenient units, or, as you did in your LED dimmer, just use simple arithmetic.
Plug the resulting value into the "interval" variable in blink-without-delay.
that's what i ended up doing but not sure if it works (as i have no cable can't tell if it's working) and i don't wanna use interputs in my programme just yet