gweimer/utils

General Utilities. Updated for XOD v0.20.x
NodeDescription
bits-to-byte
Convert 8 BITS into a BYTE. No input validation is done & assumes each input is 0 or 1.
byte-to-bits
Convert a BYTE into its individual BITS. No input validation is done and assumes a number between 0 and 255.
cast-number-to-hex-string
Convert NUM to a HEX string with "0x" prefix and a minimum of DIG digits (use leading 0's to fill).
hex-to-number
Convert a hex string (with leading 0x) into a number. A negative output indicates position of error on invalid input string.
if-else-v
Return T associated with last COND that is True, or return F if no COND is True.
queue-buffer
Buffer for implementing queue with PUSH/POP functionality. Must be daisy-chained to create queue of fixed depth.
running-avg
Calculate a running AVG. Variadic is dummy pin to select # of values to AVG. Unlabelled pins are for internal use only.
utils-example-avgNo description
utils-example-bitsNo description
utils-example-hexNo description
utils-example-if-elseNo description
utils-example-queueNo description
To use the nodes in your project you should have the  gweimer/utils  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.