Hi all!
I don't have any free digital pins left on my proyect on a ARDUINO PRO MINI.
I have a three free analogs (A3,A6,A7).
A6-A7 are strictly analog on pro mini, so can't be used as digital
So, if i set the A3 as output, can i use the TONE() function on it?
The question arise because i understand that Tones can be played through digital/pwm pins only, but not sure...
Thanks in advance.
Gabriel
Possibly, but the function requires an internal timer. You could write your own tone function, which would toggle A3 as a digital pin.
Why do you bother asking instead of simply trying yourself?
Use a piezo for output, not a low impedance speaker.
AFAIK tone() is not restricted to PWM pins.
AFAIK tone() is not restricted to PWM pins.
Good
Because, this proyect is getting complex and i try to avoid "trial and error"
Thanks a lot
system
Closed
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.