Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Commit 60c473a

Browse files
author
nichdu
committed
Update Adafruit_CharLCD.py
1 parent 82f08d5 commit 60c473a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_CharLCD/Adafruit_CharLCD.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __init__(self, rs, en, d4, d5, d6, d7, cols, lines, backlight=None,
144144
# Setup backlight.
145145
if backlight is not None:
146146
if enable_pwm:
147-
pwm.setup(backlight, self._pwm_duty_cycle(initial_backlight))
147+
pwm.start(backlight, self._pwm_duty_cycle(initial_backlight))
148148
else:
149149
gpio.setup(backlight, GPIO.OUT)
150150
gpio.output(backlight, self._blpol if initial_backlight else not self._blpol)

0 commit comments

Comments
 (0)