diff --git a/docs/examples.rst b/docs/examples.rst index 70903ca..4f9594f 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -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: \ No newline at end of file +.. literalinclude:: ../examples/mpr121_piano.py + :caption: examples/mpr121_piano.py + :linenos: diff --git a/examples/pi_keyboard.py b/examples/mpr121_pi_keyboard.py similarity index 100% rename from examples/pi_keyboard.py rename to examples/mpr121_pi_keyboard.py diff --git a/examples/piano.py b/examples/mpr121_piano.py similarity index 96% rename from examples/piano.py rename to examples/mpr121_piano.py index 5b91f61..0a879e9 100644 --- a/examples/piano.py +++ b/examples/mpr121_piano.py @@ -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: