DVDdoug:
I know nothing about the tone library.Does your hardware work with the regular-old [u]tone()[/u] function?
Like I said, I know nothing abut the library but your analogWrite() seems strange.... If you stick a couple seconds of delay() after the analogWrite() you should hear the PWM.
I get absolutely nothing with either tonea.h or tone.h
This does not even work:
bool bOn = false;
void setup(void)
{
Serial.begin(115200);
Serial.println(F("Setup complete"));
}
void loop(void)
{
if (bOn)
{
digitalWrite(2, LOW);
bOn = false;
}
else
{
digitalWrite(2, HIGH);
bOn = true;
}
delay(10);
//toneAC(1000, 10, 5000);
//noToneAC();
}