Skip to content

Commit dbf1f17

Browse files
authored
Added stuff to make travis pass
1 parent cd20def commit dbf1f17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

simpleio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ def tone(pin, frequency, duration=1, length=100):
5050
length = 350000 // frequency
5151
try:
5252
# pin with PWM
53+
#pylint: disable=no-member
5354
with pulseio.PWMOut(pin, frequency=int(frequency), variable_frequency=False) as pwm:
5455
pwm.duty_cycle = 0x8000
5556
time.sleep(duration)
57+
#pylint: enable=no-member
5658
except ValueError:
5759
# pin without PWM
5860
sample_length = length

0 commit comments

Comments
 (0)