Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of tone and noTone functions #6399

Closed
wants to merge 12 commits into from

Conversation

PilnyTomas
Copy link
Contributor

Issue #980 requested tone to be implemented.
tone in Arduino documentation
noTone in Arduino documentation

Summary

This PR provides new implementation of functions tone and noTone to be used with esp32.

Impact

New functions are written with almost the same API as Arduino original functions. This implementation adds the option to change duty (default is 50% the same as in Arduino).

@PilnyTomas PilnyTomas closed this Mar 9, 2022
@PilnyTomas PilnyTomas changed the title Implementation of tone and noTone functions solves #980 Implementation of tone and noTone functions Mar 9, 2022
@PilnyTomas PilnyTomas deleted the tone branch March 9, 2022 11:51
@PilnyTomas
Copy link
Contributor Author

The PR has phantom commits.

@me-no-dev
Copy link
Member

code should not be based on IDF's LEDC, but in Arduino's APIs. We already have a tone function, maybe wrap around it or implement this one similarly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants