Hello All Im pretty new to programming and im running into an issue. Ive been looking around everywhere but i cant seem to figure out how to get my program to work. I have a PWM for loop running to fade an LED. Id like to get user input from keyboard to stop the PWM loop.I cant use raw_input because that will stop the loop. Is there an EASY way to get a key press while a for loop is running? ive tried pygame but i cant seem to get it tor work. Everything i try seems to need to be out of a loop to run. Im trying to run this all from a ssh shell so it wont have any windows or anything. The workaround ive been doing is to launch another terminal and run a seperate python script with just the loop there which works but id like it a bit more neat. Again im pretty new to programming i was looking into threading but couldnt quite figure it out. Any suggestions will help thanks
