Skip to content

Commit 7e643ba

Browse files
authored
Moved character_lcd.py from pulseio.PWMOut to pwmio.PWMOut
1 parent f21f415 commit 7e643ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adafruit_character_lcd/character_lcd.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -620,9 +620,9 @@ class Character_LCD_RGB(Character_LCD):
620620
:param ~digitalio.DigitalInOut db7: The data line 7
621621
:param columns: The columns on the charLCD
622622
:param lines: The lines on the charLCD
623-
:param ~pulseio.PWMOut, ~digitalio.DigitalInOut red: Red RGB Anode
624-
:param ~pulseio.PWMOut, ~digitalio.DigitalInOut green: Green RGB Anode
625-
:param ~pulseio.PWMOut, ~digitalio.DigitalInOut blue: Blue RGB Anode
623+
:param ~pwmio.PWMOut, ~digitalio.DigitalInOut red: Red RGB Anode
624+
:param ~pwmio.PWMOut, ~digitalio.DigitalInOut green: Green RGB Anode
625+
:param ~pwmio.PWMOut, ~digitalio.DigitalInOut blue: Blue RGB Anode
626626
:param ~digitalio.DigitalInOut read_write: The rw pin. Determines whether to read to or
627627
write from the display. Not necessary if only writing to the display. Used on shield.
628628
@@ -662,7 +662,7 @@ def __init__(
662662
elif not hasattr(pin, "duty_cycle"):
663663
raise TypeError(
664664
"RGB LED objects must be instances of digitalio.DigitalInOut"
665-
" or pulseio.PWMOut, or provide a compatible interface."
665+
" or pwmio.PWMOut, or provide a compatible interface."
666666
)
667667

668668
self._color = [0, 0, 0]
@@ -702,7 +702,7 @@ def color(self, color):
702702
self._color = color
703703
for number, pin in enumerate(self.rgb_led):
704704
if hasattr(pin, "duty_cycle"):
705-
# Assume a pulseio.PWMOut or compatible interface and set duty cycle:
705+
# Assume a pwmio.PWMOut or compatible interface and set duty cycle:
706706
pin.duty_cycle = int(_map(color[number], 0, 100, 65535, 0))
707707
elif hasattr(pin, "value"):
708708
# If we don't have a PWM interface, all we can do is turn each color

0 commit comments

Comments
 (0)