I’m looking at using a relay to power a plug socket, but I’m wondering if there’s a way for me to pullup the current status of the pin so it can be a simple toggle.
I.e. if it’s already HIGH, set LOW… and if LOW, set HIGH.
I can’t find anything in the documentation about reading the current status of an OUTPUT pin. Is there a neat way to do it?