Hello,
I'm doing something so obviously wrong, I can't see the tree in the forest anymore.
The code above will always show "led3".Code:rvalue VAR WORD random rvalue R_V0 = (RValue//4) + 1 ' Convert it to range 1-4 if R_V0 = 1 then high led1 if R_V0 = 2 then high led2 if R_V0 = 3 then high led3 if R_V0 = 4 then high led4
What's wrong here?
Bookmarks