pylint updates
This commit is contained in:
parent
56239b0f5f
commit
2429c8bab9
1 changed files with 2 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import time
|
||||||
import board
|
import board
|
||||||
import pulseio
|
import pulseio
|
||||||
|
|
||||||
|
# pylint: disable=unused-variable,consider-using-enumerate,redefined-outer-name,too-many-locals
|
||||||
piezo = pulseio.PWMOut(board.D0, duty_cycle=0, frequency=440,
|
piezo = pulseio.PWMOut(board.D0, duty_cycle=0, frequency=440,
|
||||||
variable_frequency=True)
|
variable_frequency=True)
|
||||||
|
|
||||||
|
|
@ -56,6 +57,7 @@ def annoy_doorbell(interval):
|
||||||
time.sleep(interval)
|
time.sleep(interval)
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=too-many-statements
|
||||||
def annoy_ringtone(ringtone, tempo, interval):
|
def annoy_ringtone(ringtone, tempo, interval):
|
||||||
# ringtone 1: Nokia
|
# ringtone 1: Nokia
|
||||||
# ringtone 2: Apple iPhone
|
# ringtone 2: Apple iPhone
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue