pylint flagged fixes have been made
This commit is contained in:
parent
c5482c1efd
commit
53692b55e2
1 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ import time
|
||||||
|
|
||||||
import board
|
import board
|
||||||
import pulseio
|
import pulseio
|
||||||
from digitalio import DigitalInOut, Direction
|
|
||||||
|
|
||||||
# PWM (fading) LEDs are connected on D0, D2 (PWM not avail on D1)
|
# PWM (fading) LEDs are connected on D0, D2 (PWM not avail on D1)
|
||||||
pwm_leds = board.D2
|
pwm_leds = board.D2
|
||||||
|
|
@ -19,7 +18,7 @@ while True:
|
||||||
|
|
||||||
# And send to LED as PWM level
|
# And send to LED as PWM level
|
||||||
pwm.duty_cycle = brightness
|
pwm.duty_cycle = brightness
|
||||||
pwm2.duty_cycle = brightness
|
pwm2.duty_cycle = brightness
|
||||||
|
|
||||||
# change the brightness for next time through the loop:
|
# change the brightness for next time through the loop:
|
||||||
brightness = brightness + fade_amount
|
brightness = brightness + fade_amount
|
||||||
|
|
@ -35,4 +34,4 @@ while True:
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|
||||||
# wait for 15 ms to see the dimming effect
|
# wait for 15 ms to see the dimming effect
|
||||||
time.sleep(.015)
|
time.sleep(.015)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue