1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- import sys
- import pyupm_sx6119 as upmSx6119
-
-
-
- myFM_receiver_obj = upmSx6119.SX6119(2, 3)
-
-
-
-
- print "Supply any argument to the command line to seek to the"
- print "next station."
- print "Running the example without an argument will toggle the"
- print "power on or off.\n"
-
- doSeek = False
-
- if (len(sys.argv) > 1):
- doSeek = True
-
-
- if (doSeek):
- myFM_receiver_obj.seek()
- else:
- myFM_receiver_obj.togglePower()
-
- print "Exiting";
|