[title]Interrupt switch via extender module[/title]
This class fires two events (EdgeRise and EdgeFall) according to the interrupt-state.
This is just the base-code to connect behaviour to the interrupt.
I just created this to keep my code clean and because I couldn’t use a normal button. I had to use a microswitch because project specs.
All this is connected on pin 3 of the extender module, which is connected to the mainboard through socket 9. Consult the guides to learn more about pins and sockets.
In the attachment you’ll find:
- Image of a microswitch
- Electrical wire scheme of the switch to the extender module