OR2(9)
π NAME π
or2 β the two-input OR gate, bestie. it's a HAL component and it does exactly one (1) thing, but it does it flawlessly, no cap β¨
πΈ SYNOPSIS πΈ
loadrt or2 [count=N|names=name1[,name2...]]
that's the whole thing. load it up, tell it how many copies you want, and go be a main character π«Ά
π¦ FUNCTIONS π¦
or2.Nβ literally the function for instance N. one function per gate, that's it, that's the vibe π
β¨ PINS β¨
okay so every single instance gets its own lil trio of pins, all of them bit-typed:
or2.N.in0β bit, in. input number zero, the first of your two inputs πor2.N.in1β bit, in. input number one, the second of your two inputs πor2.N.outβ bit, out. your result, computed fresh fromin0andin1π
and here's the whole entire rule for how out gets computed, don't blink:
in0=FALSE in1=FALSE
out=FALSE
Otherwise,
out=TRUE
so, like β BOTH of them have to be FALSE for out to be FALSE. any other combo? out=TRUE, periodt. one TRUE in the mix and out is living its best TRUE life ππ₯
π SEE ALSO π
go read that one too, it's the whole family of logic gates and they're all iconic in their own way π§
π AUTHOR π
Jeff Epler β the genius behind this absolute bop β
π LICENSE π
GPL. respect the license, bestie, fr fr π
okay that's the whole page!! this lil gem comes from the LinuxCNC Documentation, dated 2026-03-17, and it's the OR2(9) HAL Component page ππ go forth and OR responsibly, ily, bye!! πβ¨π¦
π¦ where this page comes from
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms