Code Monkey home page Code Monkey logo

Comments (6)

end2endzone avatar end2endzone commented on September 26, 2024

I am looking the fix right now.

from nonblockingrtttl.

end2endzone avatar end2endzone commented on September 26, 2024

I verified your proposed changes and I agree with all of them. I did not noticed the issue when I wrote the library for an arduino nano clone. That's a good catch.

I am open to pull request. I like to give credit where credit is due. Would you like to be listed as a contributor? If so, submit a pull request.

If you do not like to be a contributor, I can commit the proposed changes myself:

  1. Replace line 270 by:
    //issue #6: Bug for ESP8266 environment - noTone() not called at end of sound.
    //disable sound at the end of a normal playback.
    stop();
  1. Insert at line 295:
    //issue #6: Bug for ESP8266 environment - noTone() not called at end of sound.
    //disable sound if one abort playback using the stop() command.
    noTone(pin);

Waiting for your feedback.

from nonblockingrtttl.

jbrown123 avatar jbrown123 commented on September 26, 2024

from nonblockingrtttl.

end2endzone avatar end2endzone commented on September 26, 2024

@jbrown123 Thanks for finding this issue.

from nonblockingrtttl.

end2endzone avatar end2endzone commented on September 26, 2024

@jbrown123 I created tag v1.2.1. If should be available throught the Arduino Library Manager in a few days.

On a side note...
I have take a look at your code in arduino-alarm-clock. If you ever need to reduce the memory usage (RAM) of your program, I suggest storing RTTTL melodies in program memory (a.k.a. PROGMEM, flash, ROM) instead of RAM. Take a look at this example which uses my other rtttl library called AnyRtttl. It supports playing melodies stored in program memory. The library does not support non-blocking mode yet but I think it may not be an issue since you are running the rtttl play routine in its own thread.

from nonblockingrtttl.

jbrown123 avatar jbrown123 commented on September 26, 2024

from nonblockingrtttl.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.