Hi, just started using the Arduino, and I'm going through the Arduino Projects Book.
I was just wondering why I don't need to set the digital pin to OUTPUT when using the tone function when digital pins are INPUT by default.
I also tried setting the Digital Pin I used the tone function on explicitly to INPUT, and the project still worked, I mean the tone function still worked.
Same question applies to using Servo.attach..
When do I absolutely need to set it to OUTPUT and when does it automatically assume output?
Thank you to anyone for their time in answering this.