A Python package to interface with the ICOM PCR-1000 serial-controlled radio receiver.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
__init__.py
pcr1000.py

README.md

pcr1000.py

A Python package to interface with the ICOM PCR-1000 serial-controlled radio receiver.

Awaiting cleanup and further doc strings; caveat emptor.

#!/usr/bin/python

import time
from pcr1000 import *

pcr = PCR1000()

# start a connection 
pcr.open()

# assign a callback when our reception signal strength is updated
pcr.on_signal_strength(lambda response, device: print "#" * int(response.args[0] * 150))

# start receiving
pcr.start()

# scan from 88.6Mhz to 105.6Mhz wideband FM in 200hz intervals
for freq in range(int(88e6), int(105e6), 200):
    pcr.tune(freq, PCR1000.MODE_WFM, PCR1000.FLT_230K)
    time.sleep(0.1)