Hi All,
Have just taken my Netduino Plus 2 out of it's packaging and looking to get started on my project, some background to start with...
I have a home made projector lift which I'm looking to control with the Netduino. The control will be via 2 methods, infrared relay and manual override. Each method will have 3 controls each (Up, Stop and Down). The outputs will be to solid state relays.
I'm having a bit of trouble getting started when I have multiple digital inputs, I've looked at the code examples for input/output/interrupt ports and they all show when you know which port/pin is explicitly being used. What I'm looking at doing is saying right, an event has occurred, figure out which port/pin it is and then do something.
Do I set up an interrupt port passing a pin class that fired the event to a method, then in the method figure out which pin it was with a switch statement or do I have to set up a separate interrupt port for each of the pins I'm using?
Or am I thinking about this wrong?
Appreciate some feedback, help?