Skip to content

Instantly share code, notes, and snippets.

@gyaresu
Created August 4, 2017 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gyaresu/93899e140e3e0190ce7b64531fb4e840 to your computer and use it in GitHub Desktop.
Save gyaresu/93899e140e3e0190ce7b64531fb4e840 to your computer and use it in GitHub Desktop.
from rflib import *
import time
d = RfCat()
def init(d):
d.setFreq(433955000)
d.setMdmModulation(MOD_ASK_OOK)
def run():
for x in range(50):
d.RFxmit("\xaa\xaa\xaa\xaa\xa3\x9a\xe5\x45\x96\x59\x76\x59\x65\x8d\x62\xb4\xcb\x2a\xb2\xab\x17\x95\x93\x1c\xb1\x67\x64\xb2\xab\x35\x93\x86\x96\xac\xa0")
time.sleep(1)
init(d)
run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment