
Originally Posted by
tazntex
Thanks for the reply. I see your point about checking twice but I just wanted to check twice, the first brings me into this and the second does the if/then. I've taken this out and now I have:
IF mydata1=%01011001 THEN
HIGH 1
ELSE
LOW 1
ENDIF
I had a previous previous thread "else" which you help me on and it is all working but like I said before, I press a button on the tx ,the outputs being portb.0-6 on the rx , the momentary outputs 1-4 come on and when I release the button they go off. Every so often one stays on, check the selected output pin with scope and it is high, but if I press and release the same button for the output again it will go back low.
So if I understand correctly, you only want the lights on WHILE receiving mydata=%01011001
HIGH 1 otherwise you WEND want it to stay Low, Correct ?
Last edited by Archangel; - 20th August 2008 at 23:31.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks