Code running on Teensy 3.6:
https://gist.github.com/macaba/33813b083b226fead09bfc127f83d7a2
It's so simple, I'm sure I'm missing something obvious...
The sketch as-is won't output any tone (but the Serial output shows valid frequency numbers). If you uncomment line 17 and comment out line 16, it'll give a [fixed frequency] tone. Why doesn't the sketch as-is work?
(I also tried AnalogWriteFrequency and get the same issue)
https://gist.github.com/macaba/33813b083b226fead09bfc127f83d7a2
It's so simple, I'm sure I'm missing something obvious...
The sketch as-is won't output any tone (but the Serial output shows valid frequency numbers). If you uncomment line 17 and comment out line 16, it'll give a [fixed frequency] tone. Why doesn't the sketch as-is work?
(I also tried AnalogWriteFrequency and get the same issue)