Skip to content

Commit e7839c6

Browse files
committed
Remove pull_scl_low
Reason: Does not work.
1 parent bb3a5e7 commit e7839c6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

PSL/i2c.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,6 @@ def __init__(self, device: Handler = None):
4949
self._device.get_ack()
5050
self.configure(125e3) # 125 kHz is as low as the PSLab can go.
5151

52-
def pull_scl_low(self, time):
53-
"""Hold SCL pin at 0 V for a specified time period.
54-
55-
Used by certain sensors such as MLX90316 PIR for initializing.
56-
57-
Parameters
58-
----------
59-
time : int
60-
Time to hold SCL LOW in microseconds.
61-
"""
62-
self._device.send_byte(CP.I2C_HEADER)
63-
self._device.send_byte(CP.I2C_PULLDOWN_SCL)
64-
self._device.send_int(time)
65-
self._device.get_ack()
6652

6753
def configure(self, frequency: float, smbus: bool = False):
6854
"""Configure frequency and bus type.

0 commit comments

Comments
 (0)