From 7cc07ddc3e7021d6c3c9ba8c8d463a179d1ac6ed Mon Sep 17 00:00:00 2001 From: dherrada Date: Thu, 9 May 2019 21:15:56 -0400 Subject: [PATCH 1/3] Added module name to example filenames --- examples/{pi_keyboard.py => mpr121_pi_keyboard.py} | 0 examples/{piano.py => mpr121_piano.py} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename examples/{pi_keyboard.py => mpr121_pi_keyboard.py} (100%) rename examples/{piano.py => mpr121_piano.py} (100%) 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 100% rename from examples/piano.py rename to examples/mpr121_piano.py From 4e217b1fa972477408dae1159ae9fc6a12ec7b38 Mon Sep 17 00:00:00 2001 From: dherrada Date: Thu, 9 May 2019 21:16:46 -0400 Subject: [PATCH 2/3] Updated docs to reflect filename changes --- docs/examples.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: From ee9ccafecc29d58b61362a780b7227a4ea71e6ef Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 10 May 2019 00:14:53 -0400 Subject: [PATCH 3/3] Disabled travis message no-member for part of the code --- examples/mpr121_piano.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/mpr121_piano.py b/examples/mpr121_piano.py index 5b91f61..0a879e9 100644 --- a/examples/mpr121_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: