SERIN/SEROUT question
Hello,
I have a question for the forum,
Is it possible to have a SERIN become an input?
For example, if I had;
DO
IF (IN3 = 0) THEN
SEROUT 4, 84, ["A"]
ELSEIF (IN4 = 0) THEN
SEROUT 4, 84, ["B"]
ENDIF
LOOP
Is there a way to have
IF (SERIN = "A") THEN
HIGH 14
ELSEIF (SERIN = "B") THEN
HIGH 13
and so on... for a maximum of 9 inputs.
I'm new to the BS2 and trying to incorporate wireless into a project I am working on, the above code is just an example using two BS2 hooked up via a cable.
Basically what I am trying to achieve is for one stamp to monitor something and then activate code on the second stamp so that it will display status on a LCD screen attached to the second BS2
I've been all over the internet looking for tidbits of information with no luck.
Thanks for your time.
Cheers,
Statix
I have a question for the forum,
Is it possible to have a SERIN become an input?
For example, if I had;
DO
IF (IN3 = 0) THEN
SEROUT 4, 84, ["A"]
ELSEIF (IN4 = 0) THEN
SEROUT 4, 84, ["B"]
ENDIF
LOOP
Is there a way to have
IF (SERIN = "A") THEN
HIGH 14
ELSEIF (SERIN = "B") THEN
HIGH 13
and so on... for a maximum of 9 inputs.
I'm new to the BS2 and trying to incorporate wireless into a project I am working on, the above code is just an example using two BS2 hooked up via a cable.
Basically what I am trying to achieve is for one stamp to monitor something and then activate code on the second stamp so that it will display status on a LCD screen attached to the second BS2
I've been all over the internet looking for tidbits of information with no luck.
Thanks for your time.
Cheers,
Statix
Comments