Skip to content

Commit

Permalink
pigpio: Fix initialization without pin_contrast (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental authored and dbrgn committed Apr 2, 2019
1 parent 9c02947 commit 95fe5da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RPLCD/pigpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ def __init__(self, pi,
self.backlight_enabled = backlight_enabled

# Set contrast
self.contrast = contrast
if pin_contrast is not None:
self.contrast = contrast

def _init_connection(self):
# Setup GPIO
Expand Down

0 comments on commit 95fe5da

Please sign in to comment.