Skip to content

Update CircuitPython_I2S_Tone.py #533

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

Merged
merged 3 commits into from
Mar 6, 2019
Merged

Conversation

papahabla
Copy link
Contributor

  • Fixed issue with sine wave calculation where changing the frequency did not have the correct result
  • The DC offset would change based on the tone_volume var, now it is constant at 2**15-1.
  • Added sample rate variable to make sine wave generation more parametric.

* Fixed issue with sine wave calculation where changing the frequency did not have the correct result
* The DC offset would change based on the `tone_volume` var, now it is constant at `2**15-1`. 
* Added sample rate variable to make sine wave generation more parametric.
@TheKitty
Copy link
Collaborator

The lint program is complaining line 14 is > 79 chars (111). Try to use a continuation line with the correct indent or comment marks to have lines <= 80 chars (yeah, the linter is picky).

Added continuation line for sine wav calculation to avoid PEP8 issue.
fixed trailing white space issue
@papahabla
Copy link
Contributor Author

thanks @TheKitty, I think I figured out how to get through PEP8 adding a continuation line. The original line was also too long.

@ladyada ladyada requested a review from kattni March 6, 2019 17:49
Copy link
Contributor

@kattni kattni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for the update!

@kattni kattni merged commit ef1b897 into adafruit:master Mar 6, 2019
@kattni
Copy link
Contributor

kattni commented Mar 6, 2019

Verified that guide does not need to be updated.

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.

3 participants