Skip to content

I2C delays slowing down code #39

Closed
@dunkmann00

Description

@dunkmann00

I noticed while trying to read tags using I2C that it seemed to be taking longer than it used to. After a fair bit of testing trying to track it down, I think it has to do with some of the delays that are present in the library.

Specifically here (Line 74):

self._req.value = False
time.sleep(0.1)
self._req.value = True
time.sleep(0.5)

and while this isn't as much of a problem, here as well (Line 105):

if self.debug:
print("Reading: ", [hex(i) for i in frame[1:]])
else:
time.sleep(0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions