1
Former-commit-id: 1b34dc488f5306fcb5d20746c217255bb9ead3c5
This commit is contained in:
2
ch340.py
2
ch340.py
@ -117,7 +117,7 @@ else:
|
||||
self._speed = 43
|
||||
self._speed = 43/34
|
||||
# x = x*30
|
||||
print(int((x-int(x))*100),int(x),x)
|
||||
# print(int((x-int(x))*100),int(x),x)
|
||||
self.pump_ser.write(f"q1h{int(x)}d".encode('ascii'))
|
||||
time.sleep(0.01)
|
||||
self.pump_ser.write(f"q2h{int((x-int(x))*100)}d".encode('ascii'))
|
||||
|
Reference in New Issue
Block a user