Help!
I'm a complete noob, although do have a bit of a background in programming.
I have a Pi B+ and a PiFaceDigital 2 - all working fine etc..
I want to create a programe that does the following:
1) Wait for an input on one of the inputs (a push switch or similar - there will be four connected)
2) When a push switch is activiate, tell me which push switch has been activated, and the time elapsed since starting the programme. I also want to activate one of the relays at this stage
I can control the outputs in code, but am struggling with the interpupts to listen to the push switches. Also, not sure on the timing element - I guess I need to run a timer of some sort, and the interupt will stop the timer.
As I'm a noob, I could do with seeing some examples of code - I'm quick to learn, and can adapt stuff, but I'm really struggling with the interupts element of the PiFaceDigital board.
Any ideas? Help very much appreciated.
Thanks!