Skip to content

Commit c9409f5

Browse files
authored
Merge pull request #18 from dherrada/master
Added module name to beginning of example filename and updated docs to reflect this
2 parents 8b05f5c + ee9ccaf commit c9409f5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docs/examples.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Ensure your device works with this simple test.
77
:caption: examples/mpr121_simpletest.py
88
:linenos:
99

10-
.. literalinclude:: ../examples/piano.py
11-
:caption: examples/piano.py
12-
:linenos:
10+
.. literalinclude:: ../examples/mpr121_piano.py
11+
:caption: examples/mpr121_piano.py
12+
:linenos:
File renamed without changes.

examples/piano.py renamed to examples/mpr121_piano.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@
3939
# Note you can optionally change the address of the device:
4040
#mpr121 = adafruit_mpr121.MPR121(i2c, address=0x91)
4141

42+
#pylint: disable-msg=no-member
4243
# Setup buzzer PWM output.
4344
buzzer = pulseio.PWMOut(BUZZER_PIN, duty_cycle=TONE_OFF_DUTY, frequency=440,
4445
variable_frequency=True)
46+
#pylint: disable-msg=no-member
4547

4648
last_note = None
4749
while True:

0 commit comments

Comments
 (0)