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.
Read the POT using analog in. Write or scale that value into the variable you use in your time delay loop.No need for interrupts or other complex processing. Every time through loop read the POT and update the variable with the delay time.
i've used "analogeRead" but doesn't work
Quotei've used "analogeRead" but doesn't workAnd that means what exactly?(The compiler expects you to spell it correctly, if that's what you meant)Scaling usually involves an arithmetic function.
How do you normally divide something?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16