I’m pretty sure that’s not exclusive or, as in the not of XOR.
Comment on Trick OR Treat
humanspiral@lemmy.ca 2 weeks ago
What is xnor and when did that become a thing?
1024_Kibibytes@lemm.ee 2 weeks ago
porl@lemmy.world 2 weeks ago
It is essentially an equivalence gate: A==B.
zea_64@lemmy.blahaj.zone 2 weeks ago
!^
lud@lemm.ee 2 weeks ago
XNOR (Exclusive NOR) is the opposite of XOR (Exclusive OR)
A way to remember XOR is “must have one or the other but not both” XNOR is the opposite so it’s “must have both” so either both inputs are 1 or 0.
XNOR or XOR is very common in homes with staircases so that you can turn on and off the light in the staircase regardless of which floor you are on.
If you google staircase switches, you will be told that they mostly use XOR but according to the wiring diagrams they use XNOR.
humanspiral@lemmy.ca 2 weeks ago
so AND. Always AND.
lud@lemm.ee 2 weeks ago
My bad. It’s “must have both or non”
RamblingPanda@lemmynsfw.com 2 weeks ago
That’s the reason I set up Home Assistant. I’m not smart enough for wiring.
lud@lemm.ee 2 weeks ago
Wiring a stairway switch is actually very easy you pretty much just need two wires going from one switch to another and then a light
Image
A_Union_of_Kobolds@lemmy.world 2 weeks ago
I was gonna say lol that’s a fancy way of describing three-ways
Fun fact, you can put as many 4-ways in between those 3-ways as you want, or as many as your electrician will agree to anyway. You can switch the same light from a dozen spots if you really want to.
RamblingPanda@lemmynsfw.com 2 weeks ago
I understand it now, but I’ll have it forgotten in five minutes. I’m a software engineer, this here is dark magic to me. Well, not this, but more complicated stuff. I envy you all for your big, juicy brains.
ayyy@sh.itjust.works 2 weeks ago
Isn’t that the same as AND but with a lot of extra words?
lud@lemm.ee 2 weeks ago
No, AND won’t match 0,0 while XNOR will. An AND switch would be useless for a staircase.