Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed9378 committed Oct 31, 2020
1 parent 31f1d77 commit 31b87f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pcf8574_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

class PCF:

def __init__(self, address, status):
def __init__(self, address):
self.address = address
self.status = status
self.status = True
self.pinModeFlag = 0x00
self.smBusNum = 1
PCF85.setup(address, self.smBusNum, status)
PCF85.setup(address, self.smBusNum, self.status)

def pin_mode(self, PinName, Mode):
self.pinModeFlag = PCF85.pin_mode(PinName, Mode, self.pinModeFlag)
Expand Down

0 comments on commit 31b87f8

Please sign in to comment.