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

Added module name to beginning of example filename and updated docs to reflect this #18

Merged
merged 3 commits into from
May 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Ensure your device works with this simple test.
:caption: examples/mpr121_simpletest.py
:linenos:

.. literalinclude:: ../examples/piano.py
:caption: examples/piano.py
:linenos:
.. literalinclude:: ../examples/mpr121_piano.py
:caption: examples/mpr121_piano.py
:linenos:
File renamed without changes.
2 changes: 2 additions & 0 deletions examples/piano.py → examples/mpr121_piano.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@
# Note you can optionally change the address of the device:
#mpr121 = adafruit_mpr121.MPR121(i2c, address=0x91)

#pylint: disable-msg=no-member
# Setup buzzer PWM output.
buzzer = pulseio.PWMOut(BUZZER_PIN, duty_cycle=TONE_OFF_DUTY, frequency=440,
variable_frequency=True)
#pylint: disable-msg=no-member

last_note = None
while True:
Expand Down