Variable types in the documentation?

Small point.

The header file declarationvoid play(unsigned int frequency, unsigned long duration = 0); would not lead me to the believe that frequency values must be below 32768, because the value of frequency is an unsigned int. I would assume that values upto 65,535 would be okay.

Hence, I think:

  1. the documentation should say that only values upto 'x' (whatever that is) work if we are to understand it
  2. adding the type doesn't tell us enough, and
  3. I don't believe there is an obstacle to implement tone() slightly differently so that it supports frequencies upto 65,535 KHz which might be handy for folks using some types of ultrasonic emitters.

HTH
GB-)