Skip to content

Commit

Permalink
soc/cores/bitbang/i2c: Add connect_pads parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Dec 17, 2024
1 parent c455a00 commit fdd7c97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions litex/soc/cores/bitbang.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class I2CMaster(LiteXModule):
"""
pads_layout = [("scl", 1), ("sda", 1)]

def __init__(self, pads=None, default_dev=False):
def __init__(self, pads=None, default_dev=False, connect_pads=True):
"""
Class constructor.
Expand All @@ -50,7 +50,8 @@ def __init__(self, pads=None, default_dev=False):

self.default_dev = default_dev

self.connect(pads)
if connect_pads:
self.connect(pads)

def connect(self, pads):
"""
Expand Down

0 comments on commit fdd7c97

Please sign in to comment.