Skip to content

Commit db5dc2d

Browse files
committed
Maybe fixed linting
1 parent b238d3d commit db5dc2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • MetroX_CircuitPython/fading_led

MetroX_CircuitPython/fading_led/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
fades a LED using pulseio's PWM
66
"""
77

8+
import time
89
import pwmio
910
import board
10-
import time
1111

1212
led = pwmio.PWMOut(board.D13, frequency=500, duty_cycle=0)
1313

@@ -17,4 +17,4 @@
1717
led.duty_cycle = int(i * 2 * 65535 / 100)
1818
else: # fade down
1919
led.duty_cycle = 65535 - int((i - 50) * 2 * 65535 / 100)
20-
time.sleep(0.05)
20+
time.sleep(0.05)

0 commit comments

Comments
 (0)