Browse Source

'Gripper.py' löschen

mkebab 1 year ago
parent
commit
3a2bbb8e35
1 changed files with 0 additions and 12 deletions
  1. 0 12
      Gripper.py

+ 0 - 12
Gripper.py

@@ -1,12 +0,0 @@
-import serial
-import time
-arduino = serial.Serial(port='COM7', baudrate=9600, timeout=.1)
-def write_read(x):
-    arduino.write(bytes(x, 'utf-8'))
-    time.sleep(0.05)
-    data = arduino.readline()
-    return data
-while True:
-    num = input("Enter a number: ") # Taking input from user
-    value = write_read(num)
-    print(value) # printing the value