I have been playing around with SR04 and a pair of 315MHz receiver, but the delay() function won't function properly given the Virtualwire library occupying the Timer 0. Is it possible to configure Timer 1 for delay() and millis()?
I have another question. How will delay() behave if its designated timer is occupied by something else (Virtualwire)? Will it wait for the timer or it will use it at its set frequency?
What is the operating frequency (the system clock) of your ATtiny85? You can use that system clock and Timer 1 to create 1 ms time tick from which you can also derive your required time delay.
It's 8MHz. The internal clock.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.