Go Down

Topic: Project 6- OUTPUT  (Read 829 times) previous topic - next topic

Claa

Hi everyone!
I'm just a newbie trying to understand how this all works and I was simply wondering why pin 8 isn't defined as an output in the code in project 6 for example ? (with pinMode function).
When I compare it to project 4 for instance (which I found similar in certain aspects), we see that pin 9, 10 and 11 are defined as OUTPUTs... how come?
Can someone provide a clear explanation of when to put something as OUTPUT versus not.

Thank you so much! :) 


sh_aks

In chapter 6
tone(8, pitch ,20)

the tone() function is taking care of making pin 8 as OUTPUT.

Handled in the library.

https://www.arduino.cc/en/Reference/Tone


Go Up