Created
March 16, 2018 19:58
-
-
Save AlexEshoo/22fd728ccb0f0417a337f32f393b80b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
import threading | |
port = serial.Serial( | |
port='COM14', | |
baudrate=9600, | |
timeout=10 | |
) | |
def write_power(p): | |
port.write(p) | |
p = b'0' | |
thread = threading.Thread(target=write_power, args=(p,)) | |
thread.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment