@@ -620,9 +620,9 @@ class Character_LCD_RGB(Character_LCD):
620
620
:param ~digitalio.DigitalInOut db7: The data line 7
621
621
:param columns: The columns on the charLCD
622
622
: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
626
626
:param ~digitalio.DigitalInOut read_write: The rw pin. Determines whether to read to or
627
627
write from the display. Not necessary if only writing to the display. Used on shield.
628
628
@@ -662,7 +662,7 @@ def __init__(
662
662
elif not hasattr (pin , "duty_cycle" ):
663
663
raise TypeError (
664
664
"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."
666
666
)
667
667
668
668
self ._color = [0 , 0 , 0 ]
@@ -702,7 +702,7 @@ def color(self, color):
702
702
self ._color = color
703
703
for number , pin in enumerate (self .rgb_led ):
704
704
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:
706
706
pin .duty_cycle = int (_map (color [number ], 0 , 100 , 65535 , 0 ))
707
707
elif hasattr (pin , "value" ):
708
708
# If we don't have a PWM interface, all we can do is turn each color
0 commit comments