Hacker News new | ask | show | jobs
by bonzini 2227 days ago
Assuming one of the contacts is connected to either ground or Vcc, one thing you can do is connect a GPIO pin to the other contact. Then when the GPIO is made an input the switch is "open", to close it you first write the value the other contact was connected to, and then you make the GPIO an output. Whether this works depends on the current that is sinked by the remote. This was my plan initially but then I went with the relays.