-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Follow suggestion from this issue: mworion/MountWizzard4#151
In particular, this pyserial piece of code:
def toggle():
import serial
import time
# This is the serial command to toggle 10Micron power
pulseCommand = ':pulse,1500*\n'
# Open port
serialCon = serial.Serial(port=MGPBox, baudrate=38400)
# Send pulse to relay
time.sleep(2)
serialCon.write(str.encode(pulseCommand))
time.sleep(2)
# Tell the user that we're done
print('Toggled power to 10Micron Mount')
# Close the port
serialCon.close()
Metadata
Metadata
Assignees
Labels
No labels