From fdd7c97ce558baa0ea4957b8c586b404339fd012 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 17 Dec 2024 14:39:12 +0100 Subject: [PATCH] soc/cores/bitbang/i2c: Add connect_pads parameter. --- litex/soc/cores/bitbang.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litex/soc/cores/bitbang.py b/litex/soc/cores/bitbang.py index a304d2cba9..abcb759fb9 100644 --- a/litex/soc/cores/bitbang.py +++ b/litex/soc/cores/bitbang.py @@ -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. @@ -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): """