Comments (6)
I am looking the fix right now.
from nonblockingrtttl.
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:
- 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();
- 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.
from nonblockingrtttl.
@jbrown123 Thanks for finding this issue.
from nonblockingrtttl.
@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.
from nonblockingrtttl.
Related Issues (8)
- Create a README file.
- Contradiction in the RTTTL specification HOT 2
- ESP32 Core has changed from 2.x to 3.0: ledcAttach replaces ledcSetup & ledcAttachpin
- Create a INSTALL file. HOT 1
- Move library to the root of the repository HOT 6
- Update INSTALL.md to use the Arduino Library Manager HOT 2
- Add support for RTX ringtones
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nonblockingrtttl.