Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Don't turn on backlights during init. #65

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Adafruit_CharLCDPlate/Adafruit_CharLCDPlate.py
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ def __init__(self, busnum=-1, addr=0x20, debug=False):

# I2C is relatively slow. MCP output port states are cached
# so we don't need to constantly poll-and-change bit states.
self.porta, self.portb, self.ddrb = 0, 0, 0b00010000
self.porta, self.portb, self.ddrb = 0b011000000, 0b1 , 0b00010000

# Set MCP23017 IOCON register to Bank 0 with sequential operation.
# If chip is already set for Bank 0, this will just write to OLATB,
@@ -116,8 +116,8 @@ def __init__(self, busnum=-1, addr=0x20, debug=False):
0b00000000, # INTCAPB
self.porta, # GPIOA
self.portb, # GPIOB
self.porta, # OLATA 0 on all outputs; side effect of
self.portb ]) # OLATB turning on R+G+B backlight LEDs.
self.porta, # OLATA
self.portb ]) # OLATB

# Switch to Bank 1 and disable sequential operation.
# From this point forward, the register addresses do NOT match