40 Hz Square wave with 8kHz tone

The great thing about Arduino is you can try things out to see if they work :wink:


And you can look things up in the reference section :wink:


If you will be doing more than one thing at a time, you will need to write non-blocking code as in post #14.

1 Like