Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions simpleio.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import sys
import array
import digitalio
import pulseio
import pwmio

try:
# RawSample was moved in CircuitPython 5.x.
Expand Down Expand Up @@ -65,7 +65,7 @@ def tone(pin, frequency, duration=1, length=100):
try:
# pin with PWM
# pylint: disable=no-member
with pulseio.PWMOut(
with pwmio.PWMOut(
pin, frequency=int(frequency), variable_frequency=False
) as pwm:
pwm.duty_cycle = 0x8000
Expand Down