Created
November 19, 2018 20:00
-
-
Save airween/334512ce4e191f67e44820bcb88cb0fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import Hamlib | |
Hamlib.rig_set_debug(Hamlib.RIG_DEBUG_NONE) | |
class Rig(object): | |
def __init__(self): | |
self.rig = Hamlib.Rig(Hamlib.RIG_MODEL_NETRIGCTL) | |
self.rig.open() | |
def shutdown(self): | |
self.rig.close() | |
def send_morse(self, text): | |
vfo = self.rig.get_vfo() | |
self.rig.send_morse(vfo, text) | |
rig = Rig() | |
t = "TEST HA2OS HA2OS TEST" | |
rig.send_morse(t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rigctld -m 1 -vv