Skip to content

Commit a90e624

Browse files
author
Brennen Bearnes
committed
else: if -> elif
1 parent 2719125 commit a90e624

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_character_lcd/character_lcd_rgb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ def __init__(self, rs, en, d4, d5, d6, d7, cols, lines,
164164
if hasattr(pin, 'direction'):
165165
# Assume a digitalio.DigitalInOut or compatible interface:
166166
pin.direction = digitalio.Direction.OUTPUT
167-
else:
168-
if not hasattr(pin, 'duty_cycle'):
167+
elif not hasattr(pin, 'duty_cycle'):
169168
raise TypeError(
170169
'RGB LED objects must be instances of digitalio.DigitalInOut'
171170
' or pulseio.PWMOut, or provide a compatible interface.'

0 commit comments

Comments
 (0)