Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import serial
  2. arduino_port = "com23"
  3. ArduinoSerial = serial.Serial(arduino_port,2000000)
  4.  
  5. while True:
  6. ard_command = ArduinoSerial.readline()
  7. value = (ard_command)
  8. myString = str(value)
  9. if myString == "test":
  10. print("if")
  11. else :
  12. print(myString)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement