writing and reading a binary word on some pins

If doesn't fit into any other category ....
Post Reply
its1000
Posts: 76
Joined: Thu May 20, 2021 6:57 pm
Has thanked: 3 times
Been thanked: 1 time

writing and reading a binary word on some pins

Post by its1000 »

hello to all
I search in the help but could not find the way to do this.
I would like to be able to encode and decode 8 infos from an annex esp to another one, using only 3 wires max.

i could use an I2C module but I don't thing it will work fine after a 2m cables.

my idea is to use 3 ouputs as a binary word and decode this binary word at the other side.
I don't find a function directly implemented in Annex to declare something like :
"set pin 5,6,7 as binary binout"
then say "write value 0 to binout" and automatically the outputs goes "0 0 0"
or "write value 3 to binout" and automatically the outputs goes "0 1 1"

same as input.

is there a function directly implemented to do this? if not I will write all the code to do it.

thank you for your help.
Post Reply