summaryrefslogtreecommitdiff
path: root/fm.py
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-04-12 13:13:18 +0300
committerYuval Adam <_@yuv.al>2018-04-12 13:13:18 +0300
commit85b9d43dda8404f2a13be60e04e1edb6618a09a9 (patch)
tree446cd2fd2edc8a3752a19c744414146e106e0479 /fm.py
parent476dd7446c84d39c47f10773571babc70916dd79 (diff)
Cleanup
Diffstat (limited to 'fm.py')
-rw-r--r--fm.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/fm.py b/fm.py
deleted file mode 100644
index dc8df68..0000000
--- a/fm.py
+++ /dev/null
@@ -1,26 +0,0 @@
-import asyncio
-from rtlsdr import RtlSdr
-
-RATE_IN = RATE_OUT = 170000
-RATE_OUT2 = 32000
-CUSTOM_ATAN = 1
-DEEMPH = 1
-SQUELCH = 0
-
-async def streaming():
- sdr = RtlSdr()
-
- async for samples in sdr.stream():
- # do something with samples
- # ...
- print(len(samples), samples[0])
-
- # to stop streaming:
- await sdr.stop()
-
- # done
- sdr.close()
-
-loop = asyncio.get_event_loop()
-loop.run_until_complete(streaming())
-