I'd like to set up a switch (on the outside of the case/enclosure) to power up/power down (halt state) a RP zero.
I have a 2-pin SPST on-off latching switch (specifically, this one: https://thepihut.com/products/spst-on-off-latching-miniature-toggle-switch), but all the examples I've seen of "power buttons" use momentary switches. Also, some of those examples use resistors and some don't (which I gather is to do with which pins you connect to, although I'm not really clear on that).
Can anyone help me understand how to wire up the latching switch and whether I need to use resistors, or perhaps point me in the direction of some easy-to-understand documentation?
