koadrobot/logics@0.1.2

License: GPL 3.0

Logic nodes. 0.0.1 [01.02.2019]: if - (cond/ cond-else/ equal/ pulse/ pulse-else/ cond-pulse/ brunch), 0.0.2 [02.02.2019]: is - (equal/ greater/ greater-eq/ less/ less-eq/ between/ between-eq), 0.0.3 [03.02.2019]: logic - (not/ and/ or/ nand/ nor/ xor), 0.0.4 [09.02.2019]: nth-input -(number), nth-output(number/bool/pulse), 0.0.5 [10.02.2019]: selection - (number), 0.1.0 [11.02.2019]: First Selection. 0.1.1 [15.02.2019]: toggle - (bool/pulse) 0.1.2: [23.02.2019]: Added info.
NodeDescription
aallNo description
if(brunch)
IF - BRUNCH TRIG ? (COND ? T : F ) : - Routes an incoming pulse to either of outputs depending on condition
if(cond)
IF - GATE R=COND ? T : - Allows values to pass through only if COND pin is set to true.
if(cond-else)
IF - GATE R=COND ? T : F Allows values to pass through COND pin.
if(cond-pulse)
IF - GATE COND ? (T ? R : - ) :- Allows pulse to pass through only if COND pin is set to true.
if(equal)
IF - R=(IN1==IN2) ? (T ? R : - ) :- Allows values to pass through only if IN1 equal IN2 pin is set to true.
if(equal-bool)No description
if(equal-pulse)No description
if(pulse)
IF - GATE R=TRIG? T : - Allows value to pass through only if TRIG pulse.
if(pulse-else)
IF - GATE R=TRIG? T : F Allows values to pass through only if TRIG pulse.
is(between)
OUT=( X > MIN && X < MAX)?T:F
is(between-eq)
OUT=( X >= MIN && X <= MAX)?T:F
is(equal)
OUT=( L == R)?T:F
is(greater)
OUT=( L > R)?T:F
is(greater-eq)
OUT=( L >= R)?T:F
is(less)
OUT=( L < R)?T:F
is(less-eq)
OUT=( L <= R)?T:F
logic(and)
IN1 IN2 OUT true true true true false false false true false false false false
logic(nand)
IN1 IN2 OUT true true false true false true false true true false false true
logic(nor)
IN1 IN2 OUT true true false true false false false true false false false true
logic(not)
Inverses a boolean value
logic(or)
IN1 IN2 OUT true true true true false true false true true false false false
logic(xor)
IN1 IN2 OUT true true false true false true false true true false false false
nth-input(number)
Selects either `X0` or `X1` based on `IDX` index value.
nth-output(boolean)
Selection 1..6 on UPD. Zero is none. Outputs are boolean. Selected one is "True" others are "False." If valid IDX selected ANY pulse transmit.
nth-output(number)
Selection 1..6 on UPD. Zero is none. Outputs are Numbers. Selected one is "emit VAL" others are "Zero." If valid IDX selected ANY pulse transmit.
nth-output(pulse)
Selection 1..6 on UPD. VAL or UPD pulse received. Selected one is "emit pulse" others are "Not isDirty." If valid IDX selected ANY pulse transmit.
selection(number)No description
toggle(bool)No description
toggle(pulse)No description
To use the nodes in your project you should have the koadrobot/logics library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.