diff --git a/send2arduino.py b/send2arduino.py index f413e1c72ed0918c39e7aca5797ed24540a71603..fd67d18c7bdf81818b5464300bbe7f9154fa646d 100644 --- a/send2arduino.py +++ b/send2arduino.py @@ -2,7 +2,7 @@ import serial import time # max 1024 -TEST_VALUE = 100 +TEST_VALUE = 1000 # a very low value to pull in an unnoticable way REST_VALUE = 1 SLEEP_SEC = 5 @@ -21,12 +21,12 @@ try: my_serial.write(arg) # hold that value for SLEEP_SEC time.sleep(SLEEP_SEC) - # release by sending negative value - arg = bytes(str(int(-TEST_VALUE)), 'utf8','ignore') + b'\r' - # send to arduino serial - my_serial.write(arg) - # hold that value for SLEEP_SEC - time.sleep(SLEEP_SEC) + # # release by sending negative value + # arg = bytes(str(int(-TEST_VALUE)), 'utf8','ignore') + b'\r' + # # send to arduino serial + # my_serial.write(arg) + # # hold that value for SLEEP_SEC + # time.sleep(2) # negative creates constant vacuum and that overheats one part # therefore, send very low value to pull in an unnoticable way arg = bytes(str(int(REST_VALUE)), 'utf8','ignore') + b'\r'