changed baudrate

This commit is contained in:
gocivici 2023-10-26 20:20:13 +03:00
parent 1ebed83f27
commit b4d2fbbaac

View File

@ -15,7 +15,7 @@ button = Button(2)
cam = cv2.VideoCapture(0) cam = cv2.VideoCapture(0)
cv2.namedWindow("webcam", cv2.WND_PROP_FULLSCREEN) cv2.namedWindow("webcam", cv2.WND_PROP_FULLSCREEN)
cv2.setWindowProperty("webcam",cv2.WND_PROP_FULLSCREEN,cv2.WINDOW_FULLSCREEN) cv2.setWindowProperty("webcam",cv2.WND_PROP_FULLSCREEN,cv2.WINDOW_FULLSCREEN)
printer = Serial(devfile='/dev/serial0',baudrate=9600,bytesize=8,parity='N',stopbits=1.00,dsrdtr=True) printer = Serial(devfile='/dev/serial0',baudrate=19200,bytesize=8,parity='N',stopbits=1.00,dsrdtr=True)
# printer.set(density=10) # printer.set(density=10)
cameraMode = False cameraMode = False
TIMER = 5 TIMER = 5