Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import serial
- arduino_port = "com23"
- ArduinoSerial = serial.Serial(arduino_port,2000000)
- while True:
- ard_command = ArduinoSerial.readline()
- value = (ard_command)
- myString = str(value)
- if myString == "test":
- print("if")
- else :
- print(myString)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement