On 6/12/2017 10:22 AM, Bas de Bruijn wrote:
> I've been looking thru the HAL components and I might have missed it. Before 
> I write one, is there a component to convert binary inputs to a number?
> 
> Use case: super simple machine to machine communication by I/O. I read 2 
> inputs and need to convert that to a number 0-3.

You can do that with mux4.  It has two bit inputs used to select one
of four fp numbers.  Just set the inputs to be the appropriate constants.

-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to