Fixes from real hardware
This commit is contained in:
parent
11fd4f4294
commit
378abee0e0
|
@ -73,6 +73,7 @@ SET_ADDRESS = (1 << 7)
|
|||
class LCD(object):
|
||||
def __init__(self, addr=ADDR):
|
||||
self.addr = addr
|
||||
self.bypass = False
|
||||
try:
|
||||
self.bus = SMBus(BUS)
|
||||
self._init_mcp()
|
||||
|
@ -81,8 +82,6 @@ class LCD(object):
|
|||
log.err(e)
|
||||
log.msg("Unable to initialize LCD. Disabling")
|
||||
self.bypass = True
|
||||
else:
|
||||
self.bypass = False
|
||||
|
||||
def _init_mcp(self):
|
||||
# Set MCP23008 pins as outputs
|
||||
|
|
Loading…
Reference in New Issue