Pin - is a variable/constant which specifies the i/o pin to use.
Note(s) - are variables/constants (0-255) which specify type and frequency. Note 0 is silent for the duration. Notes 1-127 are ascending tones. Notes 128-255 are ascending white noises.
Duration(s) - are variables/constants (0-255) which specify duration (multiples of approx 10ms).
Note and duration must be used in 'pairs' within the command.
Effect of Increased Clock Speed:
The length of the note is halved at 8MHz and quartered at 16MHz.
Submit Your Own Code!
You must be logged in to submit code examples. Login now.