I have a program that detects a flashing LED.
I now want the same program to detect a separate LED and perform calculations based on the rate of flashing from both LED's.
I also want the program to detect when an email has been received and enable the email to change variables within the program.
Upon receipt of the email, I want the Pi to send an email, with information about the program variables.
I have achieved all of the above separately but I need them all running together in one program.
From what I have read about threading and how it allows separate functions to be processed in parallel, this could be the answer but could someone please advise the best Python threading tutorial that I could play around with before starting on a solution to my own requirement.
Thank you