Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Tone function - Teensyduino

  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    2

    Tone function - Teensyduino

    Hi

    I found such information on website (http://www.pjrc.com/teensy/td_pulse.html):

    "Teensy 2.0 has a known issue where tone() will not play if you call the tone() function repetitively at high speed, restarting the tone over and over before it can begin. A future version of Teensyduino will correct this issue. As a workaround, do not call tone() again while the previous tone is still playing."

    It is already corrected in Teensyduino 1.32?

    I need to change in flexible way frequency of generated pulse signal. Tone could be ok, but I am going to make it fast. Range of frequency is wide, from few to kiloHz.

    Best Regards

    Daniel

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,789
    Quote Originally Posted by dereach View Post
    It is already corrected in Teensyduino 1.32?
    Yes and no.

    Yes, tone() on Teensy 3.x and Teensy LC was greatly improved quite a long time ago.

    But on Teensy 2.0 and Teensy++ 2.0, no. It's the same and probably will never be changed.

  3. #3
    Junior Member
    Join Date
    Nov 2016
    Posts
    2
    Thank You.

    How about lowest frequency for tone() ? Is 30 Hz?
    On arduino i used "NewTone" library (https://forum.arduino.cc/index.php?topic=143940.0) but on Teensy 3.5/teensyduino 1.32 it is not working.

    Daniel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •