OR2(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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 from in0 and in1 πŸ’…

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