Library toneAC version 1.2 tested with Uno, Leonardo, Mega 2560, ATmega8 16MHz. Everything is okay.
Library toneAC version 1.2 with option TONEAC_TINY tested with ATmega8 16MHz. Also okay, 140 bytes smaller.
The TONEAC_TINY version has implications for the source code.
If I would use toneAC(1000,5); and switch to TONEAC_TINY, I must change that line. That is not obvious, since it is the same function "toneAC".
The second parameter changes from volume to duration.
Adding a second parameter (an unused volume byte) changes the size saving from 140 to 106.
I don't know what to think of it.
It was an oversight not changing the function name for TONEAC_TINY. I now changed the function name to toneAC_tiny() when using the TINY code.
Adding the volume in for TINY code makes the TINY savings only 52 bytes on my 1.0.3 compile on Uno. If it's only 52 bytes of savings I should probably just remove the TINY code totally.
What about a ToneAC page in the Playground section ?
That's the plan, just haven't got to it yet.
Tim