from FMRadio import FMRadio import time radio = FMRadio() radio.set_volume(100) radio.set_frequency(90.10) try: while (True): time.sleep(0.1) except KeyboardInterrupt: # be sure to switch off the radio after usage, or it will drain battery radio.close()