You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step 1: Download the library as .zip
Step 2: Extract in your working directory
Step 3: In your code you need to add this due to the non-installability of the library:
So you can do step 4: from ut61eplus import UT61EPLUS
Step 5: Fix library:
A) import ctypes instead of from glibc import ctypes
B)
def _readResponse(self) -> bytes:
# pylint: disable=unsupported-assignment-operation,unsubscriptable-object
state = 0 # 0=init 1=0xAB received 2=0xCD received 3=we have length
data = bytes()
buf: bytes = None
index: int = None
sum: int = 0
numbytes = 19 # always read 19 Bytes https://www.mikrocontroller.net/attachment/556567/UT161B.pdf
while True:
# read data in bytes of 2 (1. is HID lenght, which always ready 1, so only one more byte after that)
for i in range(0, numbytes): # 19 byte-pairs in total to read
bytes_read = self.dev.read(2)
data += bytes_read[1:] # discard the HID-lenght byte, we only need the 2. Byte with data
# parse data
b: int
for b in data:
How to install this library?
Command:
pip install git+https://github.com/ljakob/unit_ut61eplus.git
Result:
ERROR: git+https://github.com/ljakob/unit_ut61eplus.git does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
The text was updated successfully, but these errors were encountered: