From 98804c9d2b6c9487706f659bd257954374edb620 Mon Sep 17 00:00:00 2001 From: "S. Seegel" Date: Mon, 9 Apr 2018 13:48:25 +0200 Subject: [PATCH] fix Brennenstuhl --- rcs1000.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rcs1000.py b/rcs1000.py index 061ae5b..2393fe3 100755 --- a/rcs1000.py +++ b/rcs1000.py @@ -3,6 +3,8 @@ import xx2262 import sys import re +import rfm69 +from rfm69 import Rfm69 def usage(): print "usage:", sys.argv[0], "<5xDIPSWITCH> on|off" @@ -45,4 +47,13 @@ else: print "Sending", str data = xx2262.MakeFrame(str, 8) -xx2262.rfm.SendPacket(data) + +rfm = Rfm69() +rfm.SetParams( + Freq = 433.92, + Datarate = 2.666666, + TXPower = 13, + ModulationType = rfm69.OOK, + SyncPattern = [] +) +rfm.SendPacket(data)