Main Site Documentation

Library - Interrupt switch via extender module


#1

[title]Interrupt switch via extender module[/title]
http://code.tinyclr.com/project/461/interrupt-switch-via-extender-module/
[line]
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:

  • BeamSwitch.cs
  • Image of a microswitch
  • Electrical wire scheme of the switch to the extender module

#2

Someone is on a roll! :smiley:
Keep’em coming!