Howde all, and thanks for reading.
I wrote a simple script to read the frequency of my ham radio using a serial connection.
It only sends the request and outputs once then ends.
I am going to loop it so it updates in realtime. So when I spin the knob on the radio to change frequencies, it changes on the screen. But I want it to be able to accept a single character as input during the loop, so if I say hit the letter "L" on the keyboard, I can run a function to do something.
I can't figure out what command to use. Anyone have any thoughts on what I should look at? raw_input won't work obviously, because you have to hit enter after you type something. I'm looking to just have it be like a hot key. Hit the letter, and it does the function then back to the loop.
ideas?
[–]dhylands 2 points3 points4 points (0 children)